Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,9 +45,9 @@ def run_manim_pre_check(code_str: str) -> (bool, str):
|
|
| 45 |
- Soft Pass on Timeout remains as a fallback.
|
| 46 |
"""
|
| 47 |
print("🕵️ Running fast pre-check with 'manim -s'...", flush=True)
|
| 48 |
-
# Using a factor of 0.
|
| 49 |
# This is a good balance of speed and reliability.
|
| 50 |
-
fast_code = modify_animation_times(code_str, factor=0.
|
| 51 |
|
| 52 |
with open("scene_pre_check.py", "w", encoding="utf-8") as f:
|
| 53 |
f.write(fast_code)
|
|
|
|
| 45 |
- Soft Pass on Timeout remains as a fallback.
|
| 46 |
"""
|
| 47 |
print("🕵️ Running fast pre-check with 'manim -s'...", flush=True)
|
| 48 |
+
# Using a factor of 0.1 makes a 10-second animation take 1 seconds in pre-check.
|
| 49 |
# This is a good balance of speed and reliability.
|
| 50 |
+
fast_code = modify_animation_times(code_str, factor=0.1)
|
| 51 |
|
| 52 |
with open("scene_pre_check.py", "w", encoding="utf-8") as f:
|
| 53 |
f.write(fast_code)
|