Update app.py
Browse files
app.py
CHANGED
@@ -214,7 +214,7 @@ def latex_to_pdf(latex_code, output_filename_base="document"):
|
|
214 |
encoding="utf-8", # Specify encoding for output decoding
|
215 |
errors="replace", # Replace undecodable characters
|
216 |
env=my_env,
|
217 |
-
|
218 |
)
|
219 |
last_result = process
|
220 |
if not os.path.exists(pdf_path_in_compile_dir) and process.returncode != 0:
|
|
|
214 |
encoding="utf-8", # Specify encoding for output decoding
|
215 |
errors="replace", # Replace undecodable characters
|
216 |
env=my_env,
|
217 |
+
# Timeout for pdflatex execution (e.g., 2 minutes)
|
218 |
)
|
219 |
last_result = process
|
220 |
if not os.path.exists(pdf_path_in_compile_dir) and process.returncode != 0:
|