Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,8 +52,8 @@ def get_video_i2vgen(image_in, prompt):
|
|
| 52 |
result = client.predict(
|
| 53 |
image_in,
|
| 54 |
prompt,
|
| 55 |
-
|
| 56 |
-
api_name="/image_to_video"
|
| 57 |
)
|
| 58 |
print(result)
|
| 59 |
return result
|
|
@@ -114,10 +114,10 @@ def infer(image_in, camera_shot, conditional_pose, prompt, style, chosen_model):
|
|
| 114 |
|
| 115 |
iid_img = get_instantID(image_in, conditional_pose, prompt, style)
|
| 116 |
|
| 117 |
-
short_cap = get_short_caption(iid_img)
|
| 118 |
|
| 119 |
if chosen_model == "i2vgen-xl" :
|
| 120 |
-
video_res = get_video_i2vgen(iid_img,
|
| 121 |
elif chosen_model == "stable-video" :
|
| 122 |
video_res = get_video_svd(image_in)
|
| 123 |
|
|
|
|
| 52 |
result = client.predict(
|
| 53 |
image_in,
|
| 54 |
prompt,
|
| 55 |
+
fn_index=1
|
| 56 |
+
#api_name="/image_to_video"
|
| 57 |
)
|
| 58 |
print(result)
|
| 59 |
return result
|
|
|
|
| 114 |
|
| 115 |
iid_img = get_instantID(image_in, conditional_pose, prompt, style)
|
| 116 |
|
| 117 |
+
#short_cap = get_short_caption(iid_img)
|
| 118 |
|
| 119 |
if chosen_model == "i2vgen-xl" :
|
| 120 |
+
video_res = get_video_i2vgen(iid_img, prompt)
|
| 121 |
elif chosen_model == "stable-video" :
|
| 122 |
video_res = get_video_svd(image_in)
|
| 123 |
|