Kaushik066 commited on
Commit
4bb36cd
·
1 Parent(s): 619b0e9

Correcting video input

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -265,12 +265,15 @@ def translate_sign_language(gesture):
265
 
266
  with gr.Blocks() as demo:
267
  gr.Markdown("# Indian Sign Language Translation App")
268
- # Add webcam input for sign language video capture
269
- video_input = gr.Video(source="webcam")
270
- # Add a button or functionality to process the video
271
- output = gr.Textbox()
 
 
 
272
  # Set up the interface
273
- video_input.change(translate_sign_language, inputs=video_input, outputs=output)
274
 
275
- if __gesture__ == "__main__":
276
  demo.launch()
 
265
 
266
  with gr.Blocks() as demo:
267
  gr.Markdown("# Indian Sign Language Translation App")
268
+ with gr.Tab("Gesture recognition"):
269
+ # Add webcam input for sign language video capture
270
+ video_input = gr.Video(source="webcam")
271
+ # Add a button or functionality to process the video
272
+ test_output = gr.Textbox()
273
+ # Submit the Video
274
+ video_button = gr.Button("Submit")
275
  # Set up the interface
276
+ video_button.click(translate_sign_language, inputs=video_input, outputs=test_output)
277
 
278
+ if __name__ == "__main__":
279
  demo.launch()