Spaces:
Runtime error
Runtime error
bthndmn12
commited on
Commit
•
ccb3087
1
Parent(s):
87757c1
Fixed some bugs
Browse files
app.py
CHANGED
@@ -63,9 +63,9 @@ def process_image(image_input):
|
|
63 |
|
64 |
# Convert numpy arrays back to PIL Images for Gradio output
|
65 |
seg_image = Image.fromarray(seg * 255) # Convert boolean mask to uint8 image
|
66 |
-
prob_map = Image.fromarray((seg_prob * 255).astype(np.uint8)) # Scale probabilities to 0-255
|
67 |
|
68 |
-
return
|
69 |
|
70 |
|
71 |
iface = gr.Interface(fn= process_image, inputs="image", outputs="image", title="Greeter")
|
|
|
63 |
|
64 |
# Convert numpy arrays back to PIL Images for Gradio output
|
65 |
seg_image = Image.fromarray(seg * 255) # Convert boolean mask to uint8 image
|
66 |
+
# prob_map = Image.fromarray((seg_prob * 255).astype(np.uint8)) # Scale probabilities to 0-255
|
67 |
|
68 |
+
return seg_image
|
69 |
|
70 |
|
71 |
iface = gr.Interface(fn= process_image, inputs="image", outputs="image", title="Greeter")
|