Chia Woon Yap commited on
Commit
1544faa
·
verified ·
1 Parent(s): 8aef97e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -319,20 +319,16 @@ def tutor_ai_chatbot():
319
  # Connect file input to document processing
320
  file_input.change(process_document, inputs=file_input, outputs=quiz_output)
321
 
322
- # Introduction Video Tab - Fixed with a placeholder
323
  with gr.Tab("Introduction Video"):
324
  with gr.Row():
325
  with gr.Column(scale=1):
326
  gr.Markdown("### Welcome to the Introduction Video")
327
  gr.Markdown("Music from Xu Mengyuan - China-O, musician Xu Mengyuan YUAN! | 徐梦圆 - China-O 音乐人徐梦圆YUAN!")
328
- gr.Markdown("**Video coming soon!**")
329
- gr.Markdown("To add a video, please upload it to your Hugging Face Space files and update the video path.")
330
-
331
- # Alternative: You can upload a video file to your Space and use:
332
- # gr.Video("we_not_me_video.mp4", label="Introduction Video")
333
 
334
  # Launch the application
335
- # Remove share=True for Hugging Face Spaces
336
  app.launch(share=False)
337
 
338
  # Launch the AI chatbot
 
319
  # Connect file input to document processing
320
  file_input.change(process_document, inputs=file_input, outputs=quiz_output)
321
 
322
+ # Introduction Video Tab - Now with the working video
323
  with gr.Tab("Introduction Video"):
324
  with gr.Row():
325
  with gr.Column(scale=1):
326
  gr.Markdown("### Welcome to the Introduction Video")
327
  gr.Markdown("Music from Xu Mengyuan - China-O, musician Xu Mengyuan YUAN! | 徐梦圆 - China-O 音乐人徐梦圆YUAN!")
328
+ # Use the local video file that's stored in your Space
329
+ gr.Video("We_not_me_video.mp4", label="Introduction Video")
 
 
 
330
 
331
  # Launch the application
 
332
  app.launch(share=False)
333
 
334
  # Launch the AI chatbot