bstraehle commited on
Commit
55021f1
1 Parent(s): 0b5eb58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.error:
119
- raise gr.Error(run.error)
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