kofdai commited on
Commit
bcdf04e
Β·
1 Parent(s): 48c81d8

Use HTML5 video tags for better video display

Browse files
Files changed (1) hide show
  1. app.py +24 -3
app.py CHANGED
@@ -330,7 +330,14 @@ with gr.Blocks(title="NullAI - Knowledge Reasoning System", css=custom_css, them
330
  # Introduction Videos
331
  with gr.Tabs():
332
  with gr.Tab("🎬 Introduction"):
333
- gr.Video("main_intro.mp4", label="NullAI Main Features", autoplay=False, show_label=True)
 
 
 
 
 
 
 
334
  gr.Markdown("""
335
  **Main Feature Highlights:**
336
  - Create specialized AIs instantly across 55+ domains
@@ -340,7 +347,14 @@ with gr.Blocks(title="NullAI - Knowledge Reasoning System", css=custom_css, them
340
  """)
341
 
342
  with gr.Tab("πŸŽ“ Educational AI"):
343
- gr.Video("educational_ai.mp4", label="Easy Creation of Educational AIs", autoplay=False, show_label=True)
 
 
 
 
 
 
 
344
  gr.Markdown("""
345
  **Educational AI Features:**
346
  - Deploy domain-specific educational AI in 30 seconds
@@ -350,7 +364,14 @@ with gr.Blocks(title="NullAI - Knowledge Reasoning System", css=custom_css, them
350
  """)
351
 
352
  with gr.Tab("🌌 Spatial Encoding"):
353
- gr.Video("spatial_encoding.mp4", label="Multi-Dimensional Knowledge Space", autoplay=False, show_label=True)
 
 
 
 
 
 
 
354
  gr.Markdown("""
355
  **Spatial Knowledge Encoding:**
356
  - Navigate knowledge in infinite dimensions
 
330
  # Introduction Videos
331
  with gr.Tabs():
332
  with gr.Tab("🎬 Introduction"):
333
+ gr.HTML("""
334
+ <div style="text-align: center; margin: 20px 0;">
335
+ <video width="100%" height="auto" controls style="max-width: 800px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
336
+ <source src="file/main_intro.mp4" type="video/mp4">
337
+ Your browser does not support the video tag.
338
+ </video>
339
+ </div>
340
+ """)
341
  gr.Markdown("""
342
  **Main Feature Highlights:**
343
  - Create specialized AIs instantly across 55+ domains
 
347
  """)
348
 
349
  with gr.Tab("πŸŽ“ Educational AI"):
350
+ gr.HTML("""
351
+ <div style="text-align: center; margin: 20px 0;">
352
+ <video width="100%" height="auto" controls style="max-width: 800px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
353
+ <source src="file/educational_ai.mp4" type="video/mp4">
354
+ Your browser does not support the video tag.
355
+ </video>
356
+ </div>
357
+ """)
358
  gr.Markdown("""
359
  **Educational AI Features:**
360
  - Deploy domain-specific educational AI in 30 seconds
 
364
  """)
365
 
366
  with gr.Tab("🌌 Spatial Encoding"):
367
+ gr.HTML("""
368
+ <div style="text-align: center; margin: 20px 0;">
369
+ <video width="100%" height="auto" controls style="max-width: 800px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
370
+ <source src="file/spatial_encoding.mp4" type="video/mp4">
371
+ Your browser does not support the video tag.
372
+ </video>
373
+ </div>
374
+ """)
375
  gr.Markdown("""
376
  **Spatial Knowledge Encoding:**
377
  - Navigate knowledge in infinite dimensions