Spaces:
Sleeping
Sleeping
12th commit
Browse files
app.py
CHANGED
|
@@ -398,16 +398,10 @@ with gr.Blocks(title="Manim Animation Generator", theme=gr.themes.Soft()) as app
|
|
| 398 |
3. Click "Generate Animation"
|
| 399 |
4. Wait for your animation to render
|
| 400 |
|
| 401 |
-
## ⚠️ Important Notes:
|
| 402 |
-
- **LaTeX Required**: MathTex requires LaTeX to be installed on the system
|
| 403 |
-
- **First Run**: May take longer due to dependency installation
|
| 404 |
-
- **Alternative**: Use `Text()` instead of `MathTex()` for simple mathematical expressions
|
| 405 |
-
|
| 406 |
## 💡 Tips:
|
| 407 |
- Your code must include `from manim import *`
|
| 408 |
- Create a class that inherits from `Scene`
|
| 409 |
- Use the `construct` method to define your animation
|
| 410 |
-
- For math without LaTeX, use `Text("f(x) = x²")` instead of `MathTex`
|
| 411 |
""")
|
| 412 |
|
| 413 |
# System status
|
|
@@ -486,9 +480,6 @@ with gr.Blocks(title="Manim Animation Generator", theme=gr.themes.Soft()) as app
|
|
| 486 |
|
| 487 |
gr.Markdown("""
|
| 488 |
## 🔧 Troubleshooting:
|
| 489 |
-
- **LaTeX Error**: Install LaTeX using the system packages above
|
| 490 |
-
- **MathTex Issues**: Use `Text()` for simple math expressions instead
|
| 491 |
-
- **Installation errors**: The app will try to install dependencies automatically
|
| 492 |
- **Timeout errors**: Try simpler animations or lower quality
|
| 493 |
- **Import errors**: Make sure to include `from manim import *`
|
| 494 |
- **Class errors**: Your class must inherit from `Scene`
|
|
@@ -500,11 +491,6 @@ with gr.Blocks(title="Manim Animation Generator", theme=gr.themes.Soft()) as app
|
|
| 500 |
- **Animations**: `Create()`, `Write()`, `Transform()`, `FadeIn()`, `FadeOut()`
|
| 501 |
- **Colors**: `RED`, `BLUE`, `GREEN`, `YELLOW`, `WHITE`, `BLACK`
|
| 502 |
|
| 503 |
-
## 📊 Math Without LaTeX:
|
| 504 |
-
If LaTeX is not available, use `Text()` instead of `MathTex()`:
|
| 505 |
-
```python
|
| 506 |
-
# Instead of: MathTex(r"x^2 + y^2 = r^2")
|
| 507 |
-
# Use: Text("x² + y² = r²", font_size=48)
|
| 508 |
```
|
| 509 |
|
| 510 |
---
|
|
|
|
| 398 |
3. Click "Generate Animation"
|
| 399 |
4. Wait for your animation to render
|
| 400 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 401 |
## 💡 Tips:
|
| 402 |
- Your code must include `from manim import *`
|
| 403 |
- Create a class that inherits from `Scene`
|
| 404 |
- Use the `construct` method to define your animation
|
|
|
|
| 405 |
""")
|
| 406 |
|
| 407 |
# System status
|
|
|
|
| 480 |
|
| 481 |
gr.Markdown("""
|
| 482 |
## 🔧 Troubleshooting:
|
|
|
|
|
|
|
|
|
|
| 483 |
- **Timeout errors**: Try simpler animations or lower quality
|
| 484 |
- **Import errors**: Make sure to include `from manim import *`
|
| 485 |
- **Class errors**: Your class must inherit from `Scene`
|
|
|
|
| 491 |
- **Animations**: `Create()`, `Write()`, `Transform()`, `FadeIn()`, `FadeOut()`
|
| 492 |
- **Colors**: `RED`, `BLUE`, `GREEN`, `YELLOW`, `WHITE`, `BLACK`
|
| 493 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 494 |
```
|
| 495 |
|
| 496 |
---
|