Spaces:
Sleeping
Sleeping
Commit
·
f6cf171
1
Parent(s):
e463c49
Update app.py
Browse files
app.py
CHANGED
@@ -97,17 +97,12 @@ def sepia(input_img):
|
|
97 |
pred_img = pred_img.astype(np.uint8)
|
98 |
|
99 |
fig = draw_plot(pred_img, seg)
|
100 |
-
|
101 |
-
class_probabilities = {
|
102 |
-
labels_list[i]: probabilities[:, :, i].numpy() for i in range(len(labels_list))
|
103 |
-
}
|
104 |
-
print(class_probabilities)
|
105 |
|
106 |
return fig
|
107 |
|
108 |
demo = gr.Interface(fn=sepia,
|
109 |
inputs=gr.Image(shape=(400, 600)),
|
110 |
-
outputs=['plot'
|
111 |
examples=["citiscapes-1.jpeg", "citiscapes-2.jpeg"],
|
112 |
allow_flagging='never')
|
113 |
|
|
|
97 |
pred_img = pred_img.astype(np.uint8)
|
98 |
|
99 |
fig = draw_plot(pred_img, seg)
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
return fig
|
102 |
|
103 |
demo = gr.Interface(fn=sepia,
|
104 |
inputs=gr.Image(shape=(400, 600)),
|
105 |
+
outputs=['plot'],
|
106 |
examples=["citiscapes-1.jpeg", "citiscapes-2.jpeg"],
|
107 |
allow_flagging='never')
|
108 |
|