mimbres commited on
Commit
202f1cb
·
verified ·
1 Parent(s): fa63b84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -124,8 +124,8 @@ def play_video(youtube_url):
124
  return None
125
  return create_html_youtube_player(youtube_url)
126
 
127
- def oauth_google():
128
- return create_html_oauth()
129
 
130
 
131
  AUDIO_EXAMPLES = glob.glob('examples/*.*', recursive=True)
@@ -229,10 +229,12 @@ with gr.Blocks(theme=theme, css=css) as demo:
229
  youtube_player = gr.HTML(render=True)
230
 
231
  with gr.Column(scale=4):
232
- with gr.Row():
233
- # Submit button
234
- transcribe_video_button = gr.Button("Transcribe", variant="primary")
235
- oauth_button = gr.Button("google.com/device", variant="primary")
 
 
236
  with gr.Column(scale=1):
237
  # Transcribe
238
  output_tab2 = gr.HTML(render=True)
@@ -240,8 +242,8 @@ with gr.Blocks(theme=theme, css=css) as demo:
240
  transcribe_video_button.click(process_video, inputs=youtube_url, outputs=output_tab2)
241
  # Play
242
  play_video_button.click(play_video, inputs=youtube_url, outputs=youtube_player)
243
- # Authetification
244
- oauth_button.click(oauth_google, outputs=youtube_player)
245
  with gr.Column(scale=1):
246
  Log(log_file, dark=True, xterm_font_size=12, elem_id='mylog')
247
  demo.launch(debug=True)
 
124
  return None
125
  return create_html_youtube_player(youtube_url)
126
 
127
+ # def oauth_google():
128
+ # return create_html_oauth()
129
 
130
 
131
  AUDIO_EXAMPLES = glob.glob('examples/*.*', recursive=True)
 
229
  youtube_player = gr.HTML(render=True)
230
 
231
  with gr.Column(scale=4):
232
+ with gr.Row():
233
+ # Submit button
234
+ transcribe_video_button = gr.Button("Transcribe", variant="primary")
235
+ # Oauth button
236
+ oauth_button = gr.Button("google.com/device", variant="primary", link="https://www.google.com/device")
237
+
238
  with gr.Column(scale=1):
239
  # Transcribe
240
  output_tab2 = gr.HTML(render=True)
 
242
  transcribe_video_button.click(process_video, inputs=youtube_url, outputs=output_tab2)
243
  # Play
244
  play_video_button.click(play_video, inputs=youtube_url, outputs=youtube_player)
245
+ # # Authetification
246
+ # oauth_button.click(oauth_google, outputs=youtube_player)
247
  with gr.Column(scale=1):
248
  Log(log_file, dark=True, xterm_font_size=12, elem_id='mylog')
249
  demo.launch(debug=True)