Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -115,8 +115,8 @@ def wait_on_run(client, thread, run):
|
|
115 |
|
116 |
show_json("run", run)
|
117 |
|
118 |
-
if hasattr(run, "last_error") and run.
|
119 |
-
raise gr.Error(run.
|
120 |
|
121 |
return run
|
122 |
|
|
|
115 |
|
116 |
show_json("run", run)
|
117 |
|
118 |
+
if hasattr(run, "last_error") and run.last_error:
|
119 |
+
raise gr.Error(run.last_error)
|
120 |
|
121 |
return run
|
122 |
|