devendergarg14 commited on
Commit
365f850
·
verified ·
1 Parent(s): 6ebad65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.2 makes a 10-second animation take 2 seconds in pre-check.
49
  # This is a good balance of speed and reliability.
50
- fast_code = modify_animation_times(code_str, factor=0.2)
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)