Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ def process_slide(slide_path):
|
|
| 83 |
|
| 84 |
image = expand2square(thumbnail, "white")
|
| 85 |
|
| 86 |
-
return process_image(np.array(image))
|
| 87 |
|
| 88 |
|
| 89 |
interface_slide = gr.Interface(
|
|
@@ -95,10 +95,16 @@ interface_slide = gr.Interface(
|
|
| 95 |
],
|
| 96 |
outputs=[
|
| 97 |
gr.Image(
|
| 98 |
-
label="
|
| 99 |
image_mode="RGB",
|
| 100 |
height=400,
|
| 101 |
width=400,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
)
|
| 103 |
],
|
| 104 |
)
|
|
|
|
| 83 |
|
| 84 |
image = expand2square(thumbnail, "white")
|
| 85 |
|
| 86 |
+
return image, process_image(np.array(image))
|
| 87 |
|
| 88 |
|
| 89 |
interface_slide = gr.Interface(
|
|
|
|
| 95 |
],
|
| 96 |
outputs=[
|
| 97 |
gr.Image(
|
| 98 |
+
label="Input Image",
|
| 99 |
image_mode="RGB",
|
| 100 |
height=400,
|
| 101 |
width=400,
|
| 102 |
+
),
|
| 103 |
+
gr.Image(
|
| 104 |
+
label="Model Prediction",
|
| 105 |
+
image_mode="L",
|
| 106 |
+
height=400,
|
| 107 |
+
width=400,
|
| 108 |
)
|
| 109 |
],
|
| 110 |
)
|