Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def create_manim_script(problem_data, script_path):
|
|
| 75 |
"text_size": 36,
|
| 76 |
"equation_size": 45,
|
| 77 |
"title_size": 48,
|
| 78 |
-
"wrap_width":
|
| 79 |
})
|
| 80 |
|
| 81 |
slides = problem_data.get("slides", [])
|
|
@@ -85,7 +85,7 @@ def create_manim_script(problem_data, script_path):
|
|
| 85 |
slides_repr = repr(slides)
|
| 86 |
|
| 87 |
# Use a dedicated wrap width in scene units; you can adapt how max_width is computed
|
| 88 |
-
wrap_width = float(settings.get("wrap_width",
|
| 89 |
|
| 90 |
manim_code = f'''
|
| 91 |
from manim import *
|
|
|
|
| 75 |
"text_size": 36,
|
| 76 |
"equation_size": 45,
|
| 77 |
"title_size": 48,
|
| 78 |
+
"wrap_width": 15.5 # in scene width units; adjust to taste
|
| 79 |
})
|
| 80 |
|
| 81 |
slides = problem_data.get("slides", [])
|
|
|
|
| 85 |
slides_repr = repr(slides)
|
| 86 |
|
| 87 |
# Use a dedicated wrap width in scene units; you can adapt how max_width is computed
|
| 88 |
+
wrap_width = float(settings.get("wrap_width", 15.5))
|
| 89 |
|
| 90 |
manim_code = f'''
|
| 91 |
from manim import *
|