Spaces:
Sleeping

raufoon commited on
Commit
8207997
·
verified ·
1 Parent(s): 920d46b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -41,9 +41,9 @@ def run_code_with_inputs(code: str, inputs: str) -> str:
41
  outputs.append(processes[-1].stdout)
42
  errors.append(processes[-1].stderr)
43
 
44
- binfile = './'+file_path.removesuffix('.pseudo'
45
- print(file_path, os.path.exists(binfile)))
46
- subprocess.run(["chmod x+", binfile])
47
  processes.append(subprocess.run(
48
  [binfile],
49
  input=input_data,
 
41
  outputs.append(processes[-1].stdout)
42
  errors.append(processes[-1].stderr)
43
 
44
+ binfile = './'+file_path.removesuffix('.pseudo')
45
+ print(file_path, os.path.exists(binfile))
46
+ subprocess.run(["chmod", "x+", binfile])
47
  processes.append(subprocess.run(
48
  [binfile],
49
  input=input_data,