qubvel-hf HF staff commited on
Commit
b54515d
1 Parent(s): 5cbdd71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -130,6 +130,8 @@ def run_with_retry(compose):
130
  compose.processors.pop("keypoints")
131
  if "mask" in str(e):
132
  kwargs.pop("mask", None)
 
 
133
  except Exception as e:
134
  compose.processors = processors
135
  raise e
 
130
  compose.processors.pop("keypoints")
131
  if "mask" in str(e):
132
  kwargs.pop("mask", None)
133
+ except ValueError as e:
134
+ raise gr.Error(str(e))
135
  except Exception as e:
136
  compose.processors = processors
137
  raise e