Commit
·
e398825
1
Parent(s):
cc044e8
Update app.py
Browse files
app.py
CHANGED
@@ -274,7 +274,7 @@ def translate_sign_language(gesture):
|
|
274 |
for frame in prod_video:
|
275 |
yield frame # Stream frame-by-frame
|
276 |
|
277 |
-
return gesture_translation , frame_generator #prod_video
|
278 |
|
279 |
with gr.Blocks() as demo:
|
280 |
gr.Markdown("# Indian Sign Language Translation App")
|
@@ -287,7 +287,7 @@ with gr.Blocks() as demo:
|
|
287 |
video_input = gr.Video(format="mp4", label="Gesture")
|
288 |
with gr.Column(scale=1, variant="panel"):
|
289 |
# Display the landmarked video
|
290 |
-
video_output = gr.Video(streaming=
|
291 |
with gr.Row(variant="panel"): # equal_height=False, show_progress=True
|
292 |
with gr.Column(scale=1, variant="panel"):
|
293 |
# Submit the Video
|
|
|
274 |
for frame in prod_video:
|
275 |
yield frame # Stream frame-by-frame
|
276 |
|
277 |
+
return gesture_translation , frame_generator() #prod_video
|
278 |
|
279 |
with gr.Blocks() as demo:
|
280 |
gr.Markdown("# Indian Sign Language Translation App")
|
|
|
287 |
video_input = gr.Video(format="mp4", label="Gesture")
|
288 |
with gr.Column(scale=1, variant="panel"):
|
289 |
# Display the landmarked video
|
290 |
+
video_output = gr.Video(streaming=True, label="Landmarked Gesture")
|
291 |
with gr.Row(variant="panel"): # equal_height=False, show_progress=True
|
292 |
with gr.Column(scale=1, variant="panel"):
|
293 |
# Submit the Video
|