codic commited on
Commit
35db94c
·
verified ·
1 Parent(s): 96e5cb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ def process_image(image_path, depth_map_path=None):
23
  Image.Resampling.LANCZOS,
24
  )
25
 
26
- # Handle background removal via Gradio Client using file path
27
- result = client.predict(image_path, api_name="/png")
28
  subject_image = Image.open(result[0]) # Processed PNG with transparent background
29
 
30
  if depth_map_path:
 
23
  Image.Resampling.LANCZOS,
24
  )
25
 
26
+ # Handle background removal via Gradio Client using file path (as string)
27
+ result = client.predict(str(image_path), api_name="/png") # Convert to string
28
  subject_image = Image.open(result[0]) # Processed PNG with transparent background
29
 
30
  if depth_map_path: