Spaces:
Runtime error
Runtime error
Use gr.on
Browse files- app.py +4 -13
- requirements.txt +2 -2
app.py
CHANGED
@@ -56,22 +56,13 @@ with gr.Blocks(css="style.css") as demo:
|
|
56 |
text_description = gr.Textbox(label="Text description")
|
57 |
run_button = gr.Button()
|
58 |
output_video = gr.Video(label="Output video")
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
queue=False,
|
63 |
-
api_name=None,
|
64 |
-
).success(
|
65 |
-
fn=video_to_video,
|
66 |
-
inputs=[input_video, text_description],
|
67 |
-
outputs=output_video,
|
68 |
-
api_name=None,
|
69 |
-
)
|
70 |
-
run_button.click(
|
71 |
fn=check_input_video,
|
72 |
inputs=input_video,
|
73 |
queue=False,
|
74 |
-
api_name=
|
75 |
).success(
|
76 |
fn=video_to_video,
|
77 |
inputs=[input_video, text_description],
|
|
|
56 |
text_description = gr.Textbox(label="Text description")
|
57 |
run_button = gr.Button()
|
58 |
output_video = gr.Video(label="Output video")
|
59 |
+
|
60 |
+
gr.on(
|
61 |
+
triggers=[text_description.submit, run_button.click],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
fn=check_input_video,
|
63 |
inputs=input_video,
|
64 |
queue=False,
|
65 |
+
api_name=False,
|
66 |
).success(
|
67 |
fn=video_to_video,
|
68 |
inputs=[input_video, text_description],
|
requirements.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
easydict==1.10
|
2 |
einops==0.6.1
|
3 |
fairscale==0.4.13
|
4 |
-
gradio==3.
|
5 |
-
huggingface_hub==0.
|
6 |
imageio==2.31.1
|
7 |
modelscope==1.8.4
|
8 |
open_clip_torch==2.20.0
|
|
|
1 |
easydict==1.10
|
2 |
einops==0.6.1
|
3 |
fairscale==0.4.13
|
4 |
+
gradio==3.45.2
|
5 |
+
huggingface_hub==0.17.3
|
6 |
imageio==2.31.1
|
7 |
modelscope==1.8.4
|
8 |
open_clip_torch==2.20.0
|