Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def process_image(image_path, depth_map_path=None):
|
|
| 26 |
|
| 27 |
# Send image as a file directly to the Gradio Client for background removal
|
| 28 |
with open(image_path, 'rb') as image_file:
|
| 29 |
-
result = client.predict(image_file, api_name="/png")
|
| 30 |
|
| 31 |
subject_image = Image.open(result[0]) # Processed PNG with transparent background
|
| 32 |
|
|
|
|
| 26 |
|
| 27 |
# Send image as a file directly to the Gradio Client for background removal
|
| 28 |
with open(image_path, 'rb') as image_file:
|
| 29 |
+
result = client.predict(image_file, api_name="/png", file=True)
|
| 30 |
|
| 31 |
subject_image = Image.open(result[0]) # Processed PNG with transparent background
|
| 32 |
|