Rishi Desai
commited on
Commit
·
70b7d28
1
Parent(s):
3d274c1
using original user promtp for video
Browse files
main.py
CHANGED
@@ -99,7 +99,13 @@ async def generate_video(image_path, prompt):
|
|
99 |
"fal-ai/wan-i2v",
|
100 |
arguments={
|
101 |
"prompt": prompt,
|
102 |
-
"image_url": image_data_url
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
},
|
104 |
)
|
105 |
|
@@ -221,8 +227,8 @@ async def process_async(ref, prompt, output):
|
|
221 |
image.save(output_filename)
|
222 |
print(f"Generated image saved to: {output_filename}")
|
223 |
|
224 |
-
# Generate video from the saved image using the
|
225 |
-
video_result = await generate_video(output_filename,
|
226 |
|
227 |
# Save the video if available
|
228 |
if video_result and isinstance(video_result, dict) and 'video' in video_result:
|
|
|
99 |
"fal-ai/wan-i2v",
|
100 |
arguments={
|
101 |
"prompt": prompt,
|
102 |
+
"image_url": image_data_url,
|
103 |
+
"resolution": "480p",
|
104 |
+
"guide_scale": 6.5,
|
105 |
+
"shift": 4.5,
|
106 |
+
"enable_prompt_expansion": True,
|
107 |
+
"acceleration": "regular",
|
108 |
+
"aspect_ratio": "auto"
|
109 |
},
|
110 |
)
|
111 |
|
|
|
227 |
image.save(output_filename)
|
228 |
print(f"Generated image saved to: {output_filename}")
|
229 |
|
230 |
+
# Generate video from the saved image using the original prompt
|
231 |
+
video_result = await generate_video(output_filename, prompt)
|
232 |
|
233 |
# Save the video if available
|
234 |
if video_result and isinstance(video_result, dict) and 'video' in video_result:
|