devendergarg14 commited on
Commit
a995631
·
verified ·
1 Parent(s): 05c2df9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,8 +30,8 @@ def modify_animation_times(code: str, factor: float = 1.0, for_precheck: bool =
30
  # We use [^)]* to match any content inside the parenthesis (numbers, math, variables)
31
  code = re.sub(r"self\.wait\s*\([^)]*\)", "self.wait(0)", code)
32
 
33
- # Regex: Find run_time=ANYTHING (until a comma or parenthesis) and set to 0
34
- code = re.sub(r"run_time\s*=\s*[^,)]+", "run_time=0", code)
35
  return code
36
 
37
  # --- MODE 2: PREVIEW SCALING (Safe Speedup) ---
 
30
  # We use [^)]* to match any content inside the parenthesis (numbers, math, variables)
31
  code = re.sub(r"self\.wait\s*\([^)]*\)", "self.wait(0)", code)
32
 
33
+ # Regex: Find run_time=ANYTHING (until a comma or parenthesis) and set to 0.01
34
+ code = re.sub(r"run_time\s*=\s*[^,)]+", "run_time=0.01", code)
35
  return code
36
 
37
  # --- MODE 2: PREVIEW SCALING (Safe Speedup) ---