Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
06da54a
1
Parent(s):
c8c1bb4
fixed?
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import json
|
| 2 |
import string
|
|
|
|
| 3 |
import uuid
|
| 4 |
import os
|
| 5 |
import logging
|
|
@@ -800,6 +801,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 800 |
self.returncode = 0
|
| 801 |
except Exception as e:
|
| 802 |
lf.write(f"\nERROR while importing/running auto_forge: {exc_text(e)}\n")
|
|
|
|
| 803 |
self.exc = e
|
| 804 |
if isinstance(e, SystemExit):
|
| 805 |
self.returncode = e.code if isinstance(e.code, int) or e.code is None else 1
|
|
|
|
| 1 |
import json
|
| 2 |
import string
|
| 3 |
+
import traceback
|
| 4 |
import uuid
|
| 5 |
import os
|
| 6 |
import logging
|
|
|
|
| 801 |
self.returncode = 0
|
| 802 |
except Exception as e:
|
| 803 |
lf.write(f"\nERROR while importing/running auto_forge: {exc_text(e)}\n")
|
| 804 |
+
traceback.print_exc()
|
| 805 |
self.exc = e
|
| 806 |
if isinstance(e, SystemExit):
|
| 807 |
self.returncode = e.code if isinstance(e.code, int) or e.code is None else 1
|