eaglelandsonce commited on
Commit
1409299
1 Parent(s): fd66bc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -17
app.py CHANGED
@@ -230,22 +230,8 @@ bot_inputs = [
230
  chatbot_component
231
  ]
232
 
233
- # Hardcoded YouTube URL
234
- youtube_url = "https://www.youtube.com/embed/_q_bfR2Iz4c"
235
-
236
- def display_video():
237
- # Embed the YouTube video in an HTML iframe
238
- video_embed = f'<iframe width="560" height="315" src="{youtube_url}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'
239
- return video_embed
240
-
241
- # Create a Gradio interface
242
- interface = gr.Interface(
243
- fn=display_video,
244
- inputs=gr.inputs.Textbox(label="Dummy Input", default="This input is not used", visible=False), # Invisible dummy input
245
- outputs="html",
246
- title="YouTube Video Player",
247
- description="This interface displays a hardcoded YouTube video."
248
- )
249
 
250
 
251
  with gr.Blocks() as demo:
@@ -302,7 +288,7 @@ with gr.Blocks() as demo:
302
  gr.HTML(TITLE)
303
 
304
  with gr.Tab("Final Product"):
305
- interface.launch()
306
 
307
 
308
  demo.queue(max_size=99).launch(debug=False, show_error=True)
 
230
  chatbot_component
231
  ]
232
 
233
+
234
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
 
236
 
237
  with gr.Blocks() as demo:
 
288
  gr.HTML(TITLE)
289
 
290
  with gr.Tab("Final Product"):
291
+ gr.HTML(TITLE)
292
 
293
 
294
  demo.queue(max_size=99).launch(debug=False, show_error=True)