Chia Woon Yap
commited on
Update app.py
Browse files
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 -
|
| 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 |
-
|
| 329 |
-
gr.
|
| 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
|