Update README.md
Browse files
README.md
CHANGED
|
@@ -99,13 +99,13 @@ def encode_image(image_path):
|
|
| 99 |
return f"data:image/jpeg;base64,{base64_encoded}"
|
| 100 |
|
| 101 |
# Example usage with image-to-video generation
|
| 102 |
-
image_filename = "
|
| 103 |
-
video_filename = "
|
| 104 |
|
| 105 |
config = {
|
| 106 |
"inputs": {
|
| 107 |
"prompt": "magnificent underwater footage, clownfishes swimming around coral inside the carribean sea, real gopro footage",
|
| 108 |
-
"image": encode_image(image_filename)
|
| 109 |
},
|
| 110 |
|
| 111 |
"parameters": {
|
|
|
|
| 99 |
return f"data:image/jpeg;base64,{base64_encoded}"
|
| 100 |
|
| 101 |
# Example usage with image-to-video generation
|
| 102 |
+
image_filename = "input.jpg" # Path to your input image
|
| 103 |
+
video_filename = "output.mp4"
|
| 104 |
|
| 105 |
config = {
|
| 106 |
"inputs": {
|
| 107 |
"prompt": "magnificent underwater footage, clownfishes swimming around coral inside the carribean sea, real gopro footage",
|
| 108 |
+
# "image": encode_image(image_filename)
|
| 109 |
},
|
| 110 |
|
| 111 |
"parameters": {
|