Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
74fae44
1
Parent(s):
691fce6
fixed exception bug
Browse files
app.py
CHANGED
@@ -872,13 +872,13 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
872 |
lf.seek(file_pos)
|
873 |
log_output += lf.read()
|
874 |
|
875 |
-
if worker.exc is not None:
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
return_code = worker.returncode
|
883 |
|
884 |
try:
|
|
|
872 |
lf.seek(file_pos)
|
873 |
log_output += lf.read()
|
874 |
|
875 |
+
# if worker.exc is not None:
|
876 |
+
# # Do NOT raise – raising would hide the explanation behind Gradio’s generic banner.
|
877 |
+
# return (
|
878 |
+
# "".join(log_output),
|
879 |
+
# None, # no preview
|
880 |
+
# gr.update(visible=False, interactive=False),
|
881 |
+
# )
|
882 |
return_code = worker.returncode
|
883 |
|
884 |
try:
|