Commit
·
4bb36cd
1
Parent(s):
619b0e9
Correcting video input
Browse files
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 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
|
|
|
|
|
|
272 |
# Set up the interface
|
273 |
-
|
274 |
|
275 |
-
if
|
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()
|