Spaces:
Running
Running
Update app.py
Browse files
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
|