osbm commited on
Commit
4cc4c48
·
verified ·
1 Parent(s): 48d2d2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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="Model Prediction",
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
  )