update the remove bg
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def remove_background(image):
|
|
| 28 |
img_bytes.seek(0)
|
| 29 |
|
| 30 |
# Step 1: Remove background using the Gradio API
|
| 31 |
-
result_url =
|
| 32 |
f=img_bytes,
|
| 33 |
api_name="/png"
|
| 34 |
)
|
|
|
|
| 28 |
img_bytes.seek(0)
|
| 29 |
|
| 30 |
# Step 1: Remove background using the Gradio API
|
| 31 |
+
result_url = background_removal_client.predict( # Corrected variable name here
|
| 32 |
f=img_bytes,
|
| 33 |
api_name="/png"
|
| 34 |
)
|