Spaces:
Runtime error
Runtime error
remove async use?
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ async def process_submission(finished_code, user_state):
|
|
| 76 |
with tempfile.NamedTemporaryFile(delete=True, suffix=".py") as f:
|
| 77 |
f.write(finished_code.encode("utf-8"))
|
| 78 |
f.flush()
|
| 79 |
-
stdout, stderr, exit_code = await run_command(["python", f.name], timeout=5)
|
| 80 |
|
| 81 |
# result = await run_python_code(finished_code)
|
| 82 |
print(f"Result: {stdout}")
|
|
|
|
| 76 |
with tempfile.NamedTemporaryFile(delete=True, suffix=".py") as f:
|
| 77 |
f.write(finished_code.encode("utf-8"))
|
| 78 |
f.flush()
|
| 79 |
+
#stdout, stderr, exit_code = await run_command(["python", f.name], timeout=5)
|
| 80 |
|
| 81 |
# result = await run_python_code(finished_code)
|
| 82 |
print(f"Result: {stdout}")
|