Jordan commited on
Commit
4117a0d
1 Parent(s): 8d1b720

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -12,8 +12,8 @@ with gr.Blocks() as demo:
12
  with gr.Tab("Video"):
13
  vid_input = gr.Video()
14
  vid_output = gr.Textbox()
15
- vid_output_interpret = gr.TextArea()
16
  vid_audio_stmt = gr.Textbox()
 
17
  vid_button = gr.Button("Check Bias in your Video")
18
 
19
  with gr.Tab("Image"):
@@ -24,8 +24,8 @@ with gr.Blocks() as demo:
24
  img_button = gr.Button("Check Bias in your Image")
25
 
26
  text_button.click(combine_modules.app_nlp_start, inputs=text_input, outputs=[text_output, text_output_interpret])
27
- vid_button.click(combine_modules.app_video_start, inputs=vid_input, outputs=[vid_output, vid_audio_stmt, vid_output_interpret])
28
- img_button.click(combine_modules.app_image_start, inputs=img_input, outputs=[img_output, img_gen_stmt, img_output_interpret])
29
 
30
 
31
  if __name__=="__main__":
 
12
  with gr.Tab("Video"):
13
  vid_input = gr.Video()
14
  vid_output = gr.Textbox()
 
15
  vid_audio_stmt = gr.Textbox()
16
+ vid_output_interpret = gr.TextArea()
17
  vid_button = gr.Button("Check Bias in your Video")
18
 
19
  with gr.Tab("Image"):
 
24
  img_button = gr.Button("Check Bias in your Image")
25
 
26
  text_button.click(combine_modules.app_nlp_start, inputs=text_input, outputs=[text_output, text_output_interpret])
27
+ vid_button.click(combine_modules.app_video_start, inputs=vid_input, outputs=[vid_output, vid_output_interpret, vid_audio_stmt])
28
+ img_button.click(combine_modules.app_image_start, inputs=img_input, outputs=[img_output, img_output_interpret, img_gen_stmt])
29
 
30
 
31
  if __name__=="__main__":