WanderingIsle commited on
Commit
dbf14da
·
verified ·
1 Parent(s): 63c1e86

remove async use?

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}")