Kaushik066 commited on
Commit
8459e16
·
verified ·
1 Parent(s): 2ff6427

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -316,7 +316,10 @@ with gr.Blocks() as demo:
316
  video_input = gr.Video(sources=["webcam"], format="mp4", label="Gesture")
317
  with gr.Column(scale=1, variant="panel"):
318
  # Display the landmarked video
319
- video_output = gr.Video(interactive=False, autoplay=True, streaming=False, label="Landmarked Gesture")
 
 
 
320
 
321
  with gr.Row(variant="panel"): # equal_height=False, show_progress=True
322
  with gr.Column(scale=1, variant="panel"):
@@ -327,7 +330,7 @@ with gr.Blocks() as demo:
327
  text_output = gr.Textbox(label="Translation in English")
328
  # Set up the interface
329
  video_button.click(translate_sign_language, inputs=video_input, outputs=[text_output, video_output])
330
- landmarked_video.change(translate_sign_language, inputs=landmarked_video, outputs=[text_output, video_output])
331
 
332
  # Indian Sign Language gesture reference tab
333
  with gr.Tab("Indian Sign Language gesture reference"):
 
316
  video_input = gr.Video(sources=["webcam"], format="mp4", label="Gesture")
317
  with gr.Column(scale=1, variant="panel"):
318
  # Display the landmarked video
319
+ video_output = gr.Video(interactive=False, autoplay=True,
320
+ streaming=False, label="Landmarked Gesture",
321
+ elem_id="landmarked_video",
322
+ style={"max-height": "350px", "width": "auto"})
323
 
324
  with gr.Row(variant="panel"): # equal_height=False, show_progress=True
325
  with gr.Column(scale=1, variant="panel"):
 
330
  text_output = gr.Textbox(label="Translation in English")
331
  # Set up the interface
332
  video_button.click(translate_sign_language, inputs=video_input, outputs=[text_output, video_output])
333
+ #landmarked_video.change(translate_sign_language, inputs=landmarked_video, outputs=[text_output, video_output])
334
 
335
  # Indian Sign Language gesture reference tab
336
  with gr.Tab("Indian Sign Language gesture reference"):