fffiloni commited on
Commit
6dd1fec
1 Parent(s): 29394a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"{output_images}") # Return the error message if inference failed
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