Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,10 +13,10 @@ def predict(image_path, clothing_prompt):
|
|
| 13 |
if modified_image:
|
| 14 |
return modified_image
|
| 15 |
else:
|
| 16 |
-
return "Failed to change clothing.
|
| 17 |
except Exception as e:
|
| 18 |
return f"Error: {e}"
|
| 19 |
-
|
| 20 |
# Create the Gradio interface
|
| 21 |
iface = gr.Interface(
|
| 22 |
fn=predict,
|
|
|
|
| 13 |
if modified_image:
|
| 14 |
return modified_image
|
| 15 |
else:
|
| 16 |
+
return "Failed to change clothing. Please check the image and prompt."
|
| 17 |
except Exception as e:
|
| 18 |
return f"Error: {e}"
|
| 19 |
+
|
| 20 |
# Create the Gradio interface
|
| 21 |
iface = gr.Interface(
|
| 22 |
fn=predict,
|