eaglelandsonce commited on
Commit
e0792e0
1 Parent(s): e6143be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -241,13 +241,7 @@ def display_video():
241
  video_embed = f'<iframe width="560" height="315" src="{embed_url}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'
242
  return video_embed
243
 
244
- # Create a Gradio interface
245
- interface = gr.Interface(
246
- fn=display_video,
247
- outputs="html",
248
- title="Hardcoded YouTube Video",
249
- description="This interface displays a hardcoded YouTube video."
250
- )
251
 
252
 
253
 
@@ -305,6 +299,11 @@ with gr.Blocks() as demo:
305
  gr.HTML(TITLE)
306
 
307
  with gr.Tab("Final Product"):
308
- interface.launch()
 
 
 
 
 
309
 
310
  demo.queue(max_size=99).launch(debug=False, show_error=True)
 
241
  video_embed = f'<iframe width="560" height="315" src="{embed_url}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'
242
  return video_embed
243
 
244
+
 
 
 
 
 
 
245
 
246
 
247
 
 
299
  gr.HTML(TITLE)
300
 
301
  with gr.Tab("Final Product"):
302
+ gr.Interface(
303
+ fn=display_video,
304
+ outputs="html",
305
+ title="Hardcoded YouTube Video",
306
+ description="This interface displays a hardcoded YouTube video."
307
+ )
308
 
309
  demo.queue(max_size=99).launch(debug=False, show_error=True)