Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ def toggle_input_fields(input_type):
|
|
113 |
return gr.update(visible=False), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
114 |
|
115 |
def clear_all():
|
116 |
-
return (gr.update(visible=
|
117 |
|
118 |
|
119 |
with gr.Blocks() as demo:
|
@@ -122,7 +122,7 @@ with gr.Blocks() as demo:
|
|
122 |
# Extract audio from video, get the transcript and then get the semantic chunk information.
|
123 |
""")
|
124 |
# Radio button to choose between URL or upload
|
125 |
-
input_type = gr.Radio(choices=["URL", "Upload"], label="Select Video Input Type"
|
126 |
|
127 |
# input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='https://www.youtube.com/watch?v=ug5e4JfC3oo')
|
128 |
|
|
|
113 |
return gr.update(visible=False), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
114 |
|
115 |
def clear_all():
|
116 |
+
return (gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False))
|
117 |
|
118 |
|
119 |
with gr.Blocks() as demo:
|
|
|
122 |
# Extract audio from video, get the transcript and then get the semantic chunk information.
|
123 |
""")
|
124 |
# Radio button to choose between URL or upload
|
125 |
+
input_type = gr.Radio(choices=["URL", "Upload"], label="Select Video Input Type")
|
126 |
|
127 |
# input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='https://www.youtube.com/watch?v=ug5e4JfC3oo')
|
128 |
|