vsrinivas commited on
Commit
d975142
·
verified ·
1 Parent(s): 5caa370

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -118,7 +118,7 @@ def semantic_chunks(segs, max_chunk_length=15.0):
118
 
119
  def toggle_input_fields(input_type):
120
  if input_type == "URL":
121
- return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=True)
122
  else:
123
  return gr.update(visible=False), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
124
 
@@ -136,7 +136,7 @@ with gr.Blocks() as demo:
136
 
137
  # input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='https://www.youtube.com/watch?v=ug5e4JfC3oo')
138
 
139
- input_url = gr.Textbox(label="Enter Video URL", visible=True, value='sample.mp4')
140
  video_file = gr.File(label="Upload Video", visible=False)
141
 
142
  # input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='sample.mp4')
 
118
 
119
  def toggle_input_fields(input_type):
120
  if input_type == "URL":
121
+ return gr.update(visible=True, value='sample.mp4'), gr.update(visible=False), gr.update(visible=True), gr.update(visible=True)
122
  else:
123
  return gr.update(visible=False), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
124
 
 
136
 
137
  # input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='https://www.youtube.com/watch?v=ug5e4JfC3oo')
138
 
139
+ input_url = gr.Textbox(label="Enter Video URL", visible=False)
140
  video_file = gr.File(label="Upload Video", visible=False)
141
 
142
  # input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='sample.mp4')