Pravin Barapatre commited on
Commit
6a1cccc
·
1 Parent(s): 2b35920

Fix gr.Examples compatibility - replace with static markdown examples

Browse files
Files changed (2) hide show
  1. app.py +11 -14
  2. text-to-video-generator/app.py +11 -14
app.py CHANGED
@@ -567,20 +567,17 @@ def create_interface():
567
  # Examples
568
  with gr.Group():
569
  gr.Markdown("## 💡 Inspiration Examples")
570
- examples = [
571
- ["A beautiful sunset over the ocean with waves crashing on the shore"],
572
- ["A cat playing with a ball of yarn in a cozy living room"],
573
- ["A futuristic city with flying cars and neon lights"],
574
- ["A butterfly emerging from a cocoon in a garden"],
575
- ["A rocket launching into space with fire and smoke"],
576
- ["Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage"],
577
- ["A majestic dragon soaring through a mystical forest with glowing mushrooms"]
578
- ]
579
- gr.Examples(
580
- examples=examples,
581
- inputs=prompt,
582
- label="Click to try these examples"
583
- )
584
 
585
  # Features
586
  with gr.Group():
 
567
  # Examples
568
  with gr.Group():
569
  gr.Markdown("## 💡 Inspiration Examples")
570
+ gr.Markdown("""
571
+ **Try these example prompts:**
572
+
573
+ A beautiful sunset over the ocean with waves crashing on the shore
574
+ A cat playing with a ball of yarn in a cozy living room
575
+ A futuristic city with flying cars and neon lights
576
+ A butterfly emerging from a cocoon in a garden
577
+ A rocket launching into space with fire and smoke
578
+ • Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage
579
+ • A majestic dragon soaring through a mystical forest with glowing mushrooms
580
+ """)
 
 
 
581
 
582
  # Features
583
  with gr.Group():
text-to-video-generator/app.py CHANGED
@@ -567,20 +567,17 @@ def create_interface():
567
  # Examples
568
  with gr.Group():
569
  gr.Markdown("## 💡 Inspiration Examples")
570
- examples = [
571
- ["A beautiful sunset over the ocean with waves crashing on the shore"],
572
- ["A cat playing with a ball of yarn in a cozy living room"],
573
- ["A futuristic city with flying cars and neon lights"],
574
- ["A butterfly emerging from a cocoon in a garden"],
575
- ["A rocket launching into space with fire and smoke"],
576
- ["Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage"],
577
- ["A majestic dragon soaring through a mystical forest with glowing mushrooms"]
578
- ]
579
- gr.Examples(
580
- examples=examples,
581
- inputs=prompt,
582
- label="Click to try these examples"
583
- )
584
 
585
  # Features
586
  with gr.Group():
 
567
  # Examples
568
  with gr.Group():
569
  gr.Markdown("## 💡 Inspiration Examples")
570
+ gr.Markdown("""
571
+ **Try these example prompts:**
572
+
573
+ A beautiful sunset over the ocean with waves crashing on the shore
574
+ A cat playing with a ball of yarn in a cozy living room
575
+ A futuristic city with flying cars and neon lights
576
+ A butterfly emerging from a cocoon in a garden
577
+ A rocket launching into space with fire and smoke
578
+ • Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage
579
+ • A majestic dragon soaring through a mystical forest with glowing mushrooms
580
+ """)
 
 
 
581
 
582
  # Features
583
  with gr.Group():