Commit
·
814c73b
1
Parent(s):
10e0844
Update app.py
Browse files
app.py
CHANGED
@@ -281,7 +281,7 @@ with gr.Blocks() as demo:
|
|
281 |
|
282 |
# Gesture recognition Tab
|
283 |
with gr.Tab("Gesture recognition"):
|
284 |
-
with gr.Row(height=
|
285 |
with gr.Column(scale=1, variant="panel"):
|
286 |
# Add webcam input for sign language video capture
|
287 |
video_input = gr.Video(format="mp4", label="Gesture")
|
@@ -292,9 +292,9 @@ with gr.Blocks() as demo:
|
|
292 |
# Submit the Video
|
293 |
video_button = gr.Button("Submit")
|
294 |
# Add a button or functionality to process the video
|
295 |
-
|
296 |
# Set up the interface
|
297 |
-
video_button.click(translate_sign_language, inputs=video_input, outputs=[
|
298 |
|
299 |
# Indian Sign Language gesture reference tab
|
300 |
with gr.Tab("Indian Sign Language gesture reference"):
|
|
|
281 |
|
282 |
# Gesture recognition Tab
|
283 |
with gr.Tab("Gesture recognition"):
|
284 |
+
with gr.Row(height=300, variant="panel", equal_height=False, show_progress=True):
|
285 |
with gr.Column(scale=1, variant="panel"):
|
286 |
# Add webcam input for sign language video capture
|
287 |
video_input = gr.Video(format="mp4", label="Gesture")
|
|
|
292 |
# Submit the Video
|
293 |
video_button = gr.Button("Submit")
|
294 |
# Add a button or functionality to process the video
|
295 |
+
text_output = gr.Textbox(label="Translation in English")
|
296 |
# Set up the interface
|
297 |
+
video_button.click(translate_sign_language, inputs=video_input, outputs=[text_output, video_output])
|
298 |
|
299 |
# Indian Sign Language gesture reference tab
|
300 |
with gr.Tab("Indian Sign Language gesture reference"):
|