Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|