Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def process_image(input_url, remove_bg):
|
|
117 |
|
118 |
if isinstance(output_video, str) and output_video.startswith("Error"):
|
119 |
shutil.rmtree(temp_dir)
|
120 |
-
raise gr.Error(f"{
|
121 |
|
122 |
|
123 |
shutil.rmtree(temp_dir) # Cleanup temporary folder
|
|
|
117 |
|
118 |
if isinstance(output_video, str) and output_video.startswith("Error"):
|
119 |
shutil.rmtree(temp_dir)
|
120 |
+
raise gr.Error(f"{output_video}") # Return the error message if inference failed
|
121 |
|
122 |
|
123 |
shutil.rmtree(temp_dir) # Cleanup temporary folder
|