Kaushik066 commited on
Commit
5ff9c67
·
verified ·
1 Parent(s): c2f033f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -22
app.py CHANGED
@@ -345,25 +345,6 @@ with gr.Blocks(css=custom_css) as demo:
345
 
346
  # Gesture recognition Tab
347
  with gr.Tab("Gesture recognition"):
348
-
349
- #with gr.Row(height=350, variant="panel"): # equal_height=False, show_progress=True
350
- # with gr.Column(scale=1, variant="panel"):
351
- # # Add webcam input for sign language video capture
352
- # video_input = gr.Video(sources=["webcam"], format="mp4", label="Gesture")
353
- # with gr.Column(scale=1, variant="panel"):
354
- # # Display the landmarked video
355
- # video_output = gr.Video(interactive=False, autoplay=True,
356
- # streaming=False, label="Landmarked Gesture",
357
- # elem_id="landmarked_video"
358
- # )
359
- #with gr.Row(variant="panel"): # equal_height=False, show_progress=True
360
- # with gr.Column(scale=1, variant="panel"):
361
- # # Submit the Video
362
- # video_button = gr.Button("Submit")
363
- # with gr.Column(): #scale=1, variant="panel"
364
- # # Add a button or functionality to process the video
365
- # text_output = gr.Textbox(label="Translation in English")
366
-
367
  with gr.Row():
368
  with gr.Column(scale=0.9, variant="panel"):
369
  with gr.Row(height=350, variant="panel"):
@@ -396,8 +377,5 @@ with gr.Blocks(css=custom_css) as demo:
396
  # Set up the interface
397
  search_button.click(play_video, inputs=video_dropdown, outputs=search_output)
398
 
399
- # Mount the static folder to serve static files (like images)
400
- demo.mount("/static", gr.routes.Static("/static", os.path.join(os.getcwd(), "static")))
401
-
402
  if __name__ == "__main__":
403
  demo.launch()
 
345
 
346
  # Gesture recognition Tab
347
  with gr.Tab("Gesture recognition"):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
  with gr.Row():
349
  with gr.Column(scale=0.9, variant="panel"):
350
  with gr.Row(height=350, variant="panel"):
 
377
  # Set up the interface
378
  search_button.click(play_video, inputs=video_dropdown, outputs=search_output)
379
 
 
 
 
380
  if __name__ == "__main__":
381
  demo.launch()