lemonteaa commited on
Commit
98d3da4
·
verified ·
1 Parent(s): bbcd536

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -19,11 +19,12 @@ def run_manim(source_code, main_class):
19
  f.write(source_code)
20
 
21
  # Run the manim command
 
22
  command = f"manim render -ql -o {output_file_name} --media_dir {MANIM_OUT_FOLDER} {input_file_path} {main_class}"
23
  result = subprocess.run(command, shell=True, check=True, capture_output=True, text=True)
24
- print("Return code:", result.returncode)
25
- print("Output:", result.stdout)
26
- print("Error:", result.stderr)
27
 
28
  # Return the output video file path
29
  return output_file_path
 
19
  f.write(source_code)
20
 
21
  # Run the manim command
22
+ print("Prepare to run", flush=True)
23
  command = f"manim render -ql -o {output_file_name} --media_dir {MANIM_OUT_FOLDER} {input_file_path} {main_class}"
24
  result = subprocess.run(command, shell=True, check=True, capture_output=True, text=True)
25
+ print("Return code:", result.returncode, flush=True)
26
+ print("Output:", result.stdout, flush=True)
27
+ print("Error:", result.stderr, flush=True)
28
 
29
  # Return the output video file path
30
  return output_file_path