Kaushik066 commited on
Commit
d1f03d3
·
1 Parent(s): e8dc447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -51,9 +51,9 @@ data_path = 'signs'
51
  # Custom CSS to control output video size
52
  custom_css = """
53
  #landmarked_video {
54
- height: 300px;
55
- width: 600px;
56
- object-fit: contain;
57
  width: 100%;
58
  height: 100%;
59
  }
@@ -335,9 +335,9 @@ with gr.Blocks(css=custom_css) as demo:
335
  with gr.Column(scale=1, variant="panel"):
336
  # Submit the Video
337
  video_button = gr.Button("Submit")
 
338
  # Add a button or functionality to process the video
339
  text_output = gr.Textbox(label="Translation in English")
340
- with gr.Column(): #scale=1, variant="panel"
341
 
342
  # Set up the interface
343
  video_button.click(translate_sign_language, inputs=video_input, outputs=[text_output, video_output])
 
51
  # Custom CSS to control output video size
52
  custom_css = """
53
  #landmarked_video {
54
+ max-height: 300px;
55
+ max-width: 600px;
56
+ object-fit: fill;
57
  width: 100%;
58
  height: 100%;
59
  }
 
335
  with gr.Column(scale=1, variant="panel"):
336
  # Submit the Video
337
  video_button = gr.Button("Submit")
338
+ with gr.Column(): #scale=1, variant="panel"
339
  # Add a button or functionality to process the video
340
  text_output = gr.Textbox(label="Translation in English")
 
341
 
342
  # Set up the interface
343
  video_button.click(translate_sign_language, inputs=video_input, outputs=[text_output, video_output])