Paolo-Fraccaro
commited on
Commit
•
a413a55
1
Parent(s):
fdab27d
rearrange
Browse files
app.py
CHANGED
@@ -253,19 +253,18 @@ with gr.Blocks() as demo:
|
|
253 |
btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out])
|
254 |
|
255 |
with gr.Row():
|
256 |
-
gr.
|
257 |
-
|
258 |
-
gr.Image(value='Legend.png', image_mode='RGB', scale=0.5, show_label=False)
|
259 |
-
|
260 |
-
with gr.Row():
|
261 |
-
gr.Examples(examples=["chip_102_345_merged.tif",
|
262 |
"chip_104_104_merged.tif",
|
263 |
"chip_109_421_merged.tif"],
|
264 |
inputs=inp,
|
265 |
outputs=[inp1, inp2, inp3, out],
|
266 |
preprocess=preprocess_example,
|
267 |
fn=func,
|
268 |
-
cache_examples=True
|
269 |
-
|
|
|
|
|
|
|
270 |
|
271 |
demo.launch()
|
|
|
253 |
btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out])
|
254 |
|
255 |
with gr.Row():
|
256 |
+
with gr.Column():
|
257 |
+
gr.Examples(examples=["chip_102_345_merged.tif",
|
|
|
|
|
|
|
|
|
258 |
"chip_104_104_merged.tif",
|
259 |
"chip_109_421_merged.tif"],
|
260 |
inputs=inp,
|
261 |
outputs=[inp1, inp2, inp3, out],
|
262 |
preprocess=preprocess_example,
|
263 |
fn=func,
|
264 |
+
cache_examples=True)
|
265 |
+
with gr.Columns():
|
266 |
+
gr.Markdown(value='### Model prediction legend')
|
267 |
+
gr.Image(value='Legend.png', image_mode='RGB', show_label=False)
|
268 |
+
|
269 |
|
270 |
demo.launch()
|