Spaces:
Sleeping
Sleeping
Updated app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
from read_whole_sliding_images import *
|
| 2 |
from stain_normalization import *
|
| 3 |
import gradio as gr
|
| 4 |
-
wsi2png = gr.Interface(fn=wsi2png, inputs=gr.
|
| 5 |
examples=wsi2png_examples)
|
| 6 |
-
bound_png = gr.Interface(fn=read_bounds_of_image, inputs=gr.
|
| 7 |
-
outputs=gr.
|
| 8 |
|
| 9 |
|
| 10 |
inp1 = gr.inputs.File()
|
| 11 |
inp2 = gr.Slider(1, 10, 4, step=0.25, label="Resolution")
|
| 12 |
-
mask_wsi = gr.Interface(fn=mask_image, inputs=[inp1, inp2], outputs=gr.
|
| 13 |
|
| 14 |
-
normalize_wsi = gr.Interface(fn=normalize_stain, inputs=gr.
|
| 15 |
examples=[stain_normalization_wsi_examples])
|
| 16 |
|
| 17 |
|
|
|
|
| 1 |
from read_whole_sliding_images import *
|
| 2 |
from stain_normalization import *
|
| 3 |
import gradio as gr
|
| 4 |
+
wsi2png = gr.Interface(fn=wsi2png, inputs=gr.File(), outputs=gr.Image(type='numpy'),
|
| 5 |
examples=wsi2png_examples)
|
| 6 |
+
bound_png = gr.Interface(fn=read_bounds_of_image, inputs=gr.Image(type='numpy'),
|
| 7 |
+
outputs=gr.Image(type='numpy'), examples=read_bounds_examples)
|
| 8 |
|
| 9 |
|
| 10 |
inp1 = gr.inputs.File()
|
| 11 |
inp2 = gr.Slider(1, 10, 4, step=0.25, label="Resolution")
|
| 12 |
+
mask_wsi = gr.Interface(fn=mask_image, inputs=[inp1, inp2], outputs=gr.Image(type='numpy'), examples=[mask_wsi_examples])
|
| 13 |
|
| 14 |
+
normalize_wsi = gr.Interface(fn=normalize_stain, inputs=gr.File(), outputs=gr.Image(type='numpy'),
|
| 15 |
examples=[stain_normalization_wsi_examples])
|
| 16 |
|
| 17 |
|