hysts HF staff commited on
Commit
69924a7
β€’
1 Parent(s): a43df6c
Files changed (2) hide show
  1. app.py +4 -13
  2. 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
- text_description.submit(
60
- fn=check_input_video,
61
- inputs=input_video,
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=None,
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.41.2
5
- huggingface_hub==0.16.4
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