Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -219,17 +219,17 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
| 219 |
youtube_url = gr.Textbox(label="YouTube Link URL",
|
| 220 |
placeholder="https://youtu.be/...")
|
| 221 |
# Display examples
|
| 222 |
-
gr.Examples(examples=YOUTUBE_EXAMPLES, inputs=youtube_url
|
| 223 |
# Play button
|
| 224 |
play_video_button = gr.Button("Get Audio from YouTube", variant="primary")
|
| 225 |
# Play youtube
|
| 226 |
youtube_player = gr.HTML(render=True)
|
| 227 |
|
| 228 |
with gr.Column(scale=4):
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
with gr.Column(scale=1):
|
| 234 |
# Transcribe
|
| 235 |
output_tab2 = gr.HTML(render=True)
|
|
@@ -239,7 +239,6 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
| 239 |
play_video_button.click(play_video, inputs=youtube_url, outputs=youtube_player)
|
| 240 |
# Authetification
|
| 241 |
oauth_button.click(oauth_google, outputs=youtube_player)
|
| 242 |
-
|
| 243 |
with gr.Column(scale=1):
|
| 244 |
Log(log_file, dark=True, xterm_font_size=12, elem_id='mylog')
|
| 245 |
|
|
|
|
| 219 |
youtube_url = gr.Textbox(label="YouTube Link URL",
|
| 220 |
placeholder="https://youtu.be/...")
|
| 221 |
# Display examples
|
| 222 |
+
gr.Examples(examples=YOUTUBE_EXAMPLES, inputs=youtube_url)
|
| 223 |
# Play button
|
| 224 |
play_video_button = gr.Button("Get Audio from YouTube", variant="primary")
|
| 225 |
# Play youtube
|
| 226 |
youtube_player = gr.HTML(render=True)
|
| 227 |
|
| 228 |
with gr.Column(scale=4):
|
| 229 |
+
with gr.Row():
|
| 230 |
+
# Submit button
|
| 231 |
+
transcribe_video_button = gr.Button("Transcribe", variant="primary")
|
| 232 |
+
oauth_button = gr.Button("google.com/device", variant="primary")
|
| 233 |
with gr.Column(scale=1):
|
| 234 |
# Transcribe
|
| 235 |
output_tab2 = gr.HTML(render=True)
|
|
|
|
| 239 |
play_video_button.click(play_video, inputs=youtube_url, outputs=youtube_player)
|
| 240 |
# Authetification
|
| 241 |
oauth_button.click(oauth_google, outputs=youtube_player)
|
|
|
|
| 242 |
with gr.Column(scale=1):
|
| 243 |
Log(log_file, dark=True, xterm_font_size=12, elem_id='mylog')
|
| 244 |
|