DongfuJiang commited on
Commit
c467c9d
1 Parent(s): 2c34f7c
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -182,10 +182,11 @@ def build_demo():
182
  with gr.Row():
183
  video = gr.Video(width=500, label="Video")
184
  with gr.Column():
 
185
  video_prompt = gr.Textbox(label="Text Prompt", interactive=False, lines=1)
186
  with gr.Row():
187
  eval_button = gr.Button("Evaluate Video")
188
- clear_button = gr.ClearButton([video])
189
  eval_result = gr.Textbox(label="Evaluation result", interactive=False, lines=7)
190
 
191
  eval_button.click(
 
182
  with gr.Row():
183
  video = gr.Video(width=500, label="Video")
184
  with gr.Column():
185
+ eval_prompt_template = gr.Textbox(VIDEO_EVAL_PROMPT.strip(' \n'), label="Evaluation Prompt Template", interactive=False, max_lines=26)
186
  video_prompt = gr.Textbox(label="Text Prompt", interactive=False, lines=1)
187
  with gr.Row():
188
  eval_button = gr.Button("Evaluate Video")
189
+ clear_button = gr.ClearButton([video, video_prompt])
190
  eval_result = gr.Textbox(label="Evaluation result", interactive=False, lines=7)
191
 
192
  eval_button.click(