Spaces:
Build error
Build error
up
Browse files
app.py
CHANGED
@@ -509,7 +509,7 @@ def run_code(file_path: str) -> str:
|
|
509 |
["python", resolved_path],
|
510 |
capture_output=True,
|
511 |
text=True,
|
512 |
-
timeout=
|
513 |
)
|
514 |
output = result.stdout.strip()
|
515 |
# Lọc chỉ giữ lại số từ output
|
|
|
509 |
["python", resolved_path],
|
510 |
capture_output=True,
|
511 |
text=True,
|
512 |
+
timeout=60 # Thời gian chờ 30 giây
|
513 |
)
|
514 |
output = result.stdout.strip()
|
515 |
# Lọc chỉ giữ lại số từ output
|