hvoss-techfak commited on
Commit
5da6ee2
·
verified ·
1 Parent(s): e605b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -833,6 +833,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
833
  "\nERROR: {}. This usually means the space has no free GPU "
834
  "minutes left, or the process took too long due to too many filaments or changed parameters. Please clone the docker container, run it locally or wait for a bit.\n".format(e)
835
  )
 
 
 
 
836
  # a non-zero code tells the outer loop something went wrong
837
  self.returncode = -1
838
 
 
833
  "\nERROR: {}. This usually means the space has no free GPU "
834
  "minutes left, or the process took too long due to too many filaments or changed parameters. Please clone the docker container, run it locally or wait for a bit.\n".format(e)
835
  )
836
+ gr.Error(
837
+ "\nERROR: {}. This usually means the space has no free GPU "
838
+ "minutes left, or the process took too long due to too many filaments or changed parameters. Please clone the docker container, run it locally or wait for a bit.\n".format(e)
839
+ )
840
  # a non-zero code tells the outer loop something went wrong
841
  self.returncode = -1
842