Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,8 @@ class CodeExecutor:
|
|
45 |
output_text = output.read()
|
46 |
error_text = error.read()
|
47 |
if error_text:
|
48 |
-
return f"{code}\n\
|
49 |
-
return f"{code}\n\nOutput:\n{output_text}"
|
50 |
|
51 |
def execute(self, code, inputs, packages):
|
52 |
try:
|
|
|
45 |
output_text = output.read()
|
46 |
error_text = error.read()
|
47 |
if error_text:
|
48 |
+
return f"User Code:\n{code}\n\nError:\n{error_text}"
|
49 |
+
return f"User Code:\n{code}\n\nOutput:\n{output_text}"
|
50 |
|
51 |
def execute(self, code, inputs, packages):
|
52 |
try:
|