ksort commited on
Commit
15e9833
·
1 Parent(s): b6dc501
Files changed (1) hide show
  1. serve/gradio_web_video.py +7 -7
serve/gradio_web_video.py CHANGED
@@ -224,13 +224,13 @@ def build_side_by_side_video_ui_anony(models):
224
  example2_text = gr.Textbox(value="A baker turns freshly baked loaves of sourdough bread.", visible=False, interactive=False)
225
  example3_text = gr.Textbox(value="Dense fog glows orange and covers hills at dawn.", visible=False, interactive=False)
226
  example4_text = gr.Textbox(value="Happy extended family on the sofa at home.", visible=False, interactive=False)
227
- dummy_video_output = gr.Video(width=512, visible=False)
228
- gr.Examples(
229
- examples=[["Chef with recipe book watching young cook preparing dish in the kitchen.", os.path.join("./examples", "video_example1.mp4")],
230
- ["A baker turns freshly baked loaves of sourdough bread.", os.path.join("./examples", "video_example2.mp4")],
231
- ["Dense fog glows orange and covers hills at dawn.",os.path.join("./examples", "video_example3.mp4")],
232
- ["Happy extended family on the sofa at home.", os.path.join("./examples", "video_example4.mp4")]],
233
- inputs = [textbox, dummy_video_output])
234
 
235
  order_btn_list = [textbox, send_btn, draw_btn, clear_btn]
236
  vote_order_list = [leftvote_btn, left1vote_btn, rightvote_btn, right1vote_btn, tie_btn, \
 
224
  example2_text = gr.Textbox(value="A baker turns freshly baked loaves of sourdough bread.", visible=False, interactive=False)
225
  example3_text = gr.Textbox(value="Dense fog glows orange and covers hills at dawn.", visible=False, interactive=False)
226
  example4_text = gr.Textbox(value="Happy extended family on the sofa at home.", visible=False, interactive=False)
227
+ # dummy_video_output = gr.Video(width=512, visible=False)
228
+ # gr.Examples(
229
+ # examples=[["Chef with recipe book watching young cook preparing dish in the kitchen.", os.path.join("./examples", "video_example1.mp4")],
230
+ # ["A baker turns freshly baked loaves of sourdough bread.", os.path.join("./examples", "video_example2.mp4")],
231
+ # ["Dense fog glows orange and covers hills at dawn.",os.path.join("./examples", "video_example3.mp4")],
232
+ # ["Happy extended family on the sofa at home.", os.path.join("./examples", "video_example4.mp4")]],
233
+ # inputs = [textbox, dummy_video_output])
234
 
235
  order_btn_list = [textbox, send_btn, draw_btn, clear_btn]
236
  vote_order_list = [leftvote_btn, left1vote_btn, rightvote_btn, right1vote_btn, tie_btn, \