Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ try:
|
|
| 12 |
GENAI_AVAILABLE = True
|
| 13 |
except ImportError:
|
| 14 |
GENAI_AVAILABLE = False
|
| 15 |
-
print("
|
| 16 |
|
| 17 |
# Get API key from environment
|
| 18 |
GEMINI_API_KEY = os.environ.get("GEMINI_API_KEY", "")
|
|
@@ -259,11 +259,7 @@ def create_interface():
|
|
| 259 |
gr.Markdown("""
|
| 260 |
# 🎬 Manim Video Generator
|
| 261 |
Create mathematical animations using AI! Describe what you want to see animated.
|
| 262 |
-
|
| 263 |
-
**⚠️ IMPORTANT: You need to set GEMINI_API_KEY in Space Settings → Variables and secrets**
|
| 264 |
-
|
| 265 |
-
Get your free Gemini API key from: https://aistudio.google.com/app/apikey
|
| 266 |
-
|
| 267 |
**Examples:**
|
| 268 |
- "Explain Pythagorean theorem with animation"
|
| 269 |
- "Show a sine wave transforming into a cosine wave"
|
|
@@ -299,11 +295,6 @@ def create_interface():
|
|
| 299 |
- Medium/High quality may take 2-3 minutes
|
| 300 |
- Complex animations may timeout on free tier
|
| 301 |
|
| 302 |
-
### 🔧 Setup Required:
|
| 303 |
-
1. Get a free Gemini API key from: https://aistudio.google.com/app/apikey
|
| 304 |
-
2. In your Space, go to Settings → Variables and secrets
|
| 305 |
-
3. Add: Name: `GEMINI_API_KEY`, Value: `your-api-key-here`
|
| 306 |
-
4. Restart the Space
|
| 307 |
""")
|
| 308 |
|
| 309 |
generate_btn.click(
|
|
|
|
| 12 |
GENAI_AVAILABLE = True
|
| 13 |
except ImportError:
|
| 14 |
GENAI_AVAILABLE = False
|
| 15 |
+
print("")
|
| 16 |
|
| 17 |
# Get API key from environment
|
| 18 |
GEMINI_API_KEY = os.environ.get("GEMINI_API_KEY", "")
|
|
|
|
| 259 |
gr.Markdown("""
|
| 260 |
# 🎬 Manim Video Generator
|
| 261 |
Create mathematical animations using AI! Describe what you want to see animated.
|
| 262 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
**Examples:**
|
| 264 |
- "Explain Pythagorean theorem with animation"
|
| 265 |
- "Show a sine wave transforming into a cosine wave"
|
|
|
|
| 295 |
- Medium/High quality may take 2-3 minutes
|
| 296 |
- Complex animations may timeout on free tier
|
| 297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
""")
|
| 299 |
|
| 300 |
generate_btn.click(
|