Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -97,6 +97,7 @@ def unified_image_generator(
|
|
97 |
|
98 |
def create_video_transition(
|
99 |
input_image_gallery: List[str],
|
|
|
100 |
output_image: str,
|
101 |
oauth_token: Optional[gr.OAuthToken] = None
|
102 |
) -> tuple:
|
@@ -118,7 +119,7 @@ def create_video_transition(
|
|
118 |
result = video_client.predict(
|
119 |
start_image_pil=handle_file(input_image_path),
|
120 |
end_image_pil=handle_file(output_image),
|
121 |
-
prompt=
|
122 |
api_name="/generate_video"
|
123 |
)
|
124 |
print(result)
|
@@ -206,7 +207,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
206 |
outputs=[video_group],
|
207 |
).then(
|
208 |
fn=create_video_transition,
|
209 |
-
inputs=[image_input_gallery, output_image],
|
210 |
outputs=[video_output],
|
211 |
)
|
212 |
|
|
|
97 |
|
98 |
def create_video_transition(
|
99 |
input_image_gallery: List[str],
|
100 |
+
prompt_input: str,
|
101 |
output_image: str,
|
102 |
oauth_token: Optional[gr.OAuthToken] = None
|
103 |
) -> tuple:
|
|
|
119 |
result = video_client.predict(
|
120 |
start_image_pil=handle_file(input_image_path),
|
121 |
end_image_pil=handle_file(output_image),
|
122 |
+
prompt=prompt_input,
|
123 |
api_name="/generate_video"
|
124 |
)
|
125 |
print(result)
|
|
|
207 |
outputs=[video_group],
|
208 |
).then(
|
209 |
fn=create_video_transition,
|
210 |
+
inputs=[image_input_gallery, prompt_input, output_image],
|
211 |
outputs=[video_output],
|
212 |
)
|
213 |
|