Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def exc(source, token):
|
|
16 |
consoleop = sys.stdout.getvalue().strip()
|
17 |
return [op, consoleop]
|
18 |
except Exception as e:
|
19 |
-
return f"{e}"
|
20 |
sys.stdout = original_stdout
|
21 |
|
22 |
app = gr.Interface(
|
|
|
16 |
consoleop = sys.stdout.getvalue().strip()
|
17 |
return [op, consoleop]
|
18 |
except Exception as e:
|
19 |
+
return ["", f"{e}"]
|
20 |
sys.stdout = original_stdout
|
21 |
|
22 |
app = gr.Interface(
|