Paolo-Fraccaro
commited on
Commit
•
a45e5cd
1
Parent(s):
c88df31
fix layout with legend
Browse files
app.py
CHANGED
@@ -214,19 +214,19 @@ with gr.Blocks() as demo:
|
|
214 |
inp = gr.File()
|
215 |
btn = gr.Button("Submit")
|
216 |
|
217 |
-
with gr.Row():
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
|
224 |
with gr.Row():
|
225 |
-
inp1=gr.Image(image_mode='RGB')
|
226 |
-
inp2=gr.Image(image_mode='RGB')
|
227 |
-
inp3=gr.Image(image_mode='RGB')
|
228 |
-
out = gr.Image(image_mode='
|
229 |
-
gr.Image(value='Legend.png', image_mode='RGB', scale=
|
230 |
|
231 |
btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out])
|
232 |
|
|
|
214 |
inp = gr.File()
|
215 |
btn = gr.Button("Submit")
|
216 |
|
217 |
+
# with gr.Row():
|
218 |
+
# gr.Markdown(value='### T1', scale=)
|
219 |
+
# gr.Markdown(value='### T2')
|
220 |
+
# gr.Markdown(value='### T3')
|
221 |
+
# gr.Markdown(value='### Model prediction')
|
222 |
+
# gr.Markdown(value='### Legend')
|
223 |
|
224 |
with gr.Row():
|
225 |
+
inp1=gr.Image(image_mode='RGB', scale=10, label='T1')
|
226 |
+
inp2=gr.Image(image_mode='RGB', scale=10, label='T2')
|
227 |
+
inp3=gr.Image(image_mode='RGB', scale=10, label='T3')
|
228 |
+
out = gr.Image(image_mode='RGB', scale=10, label='Model prediction')
|
229 |
+
gr.Image(value='Legend.png', image_mode='RGB', scale=3, show_label=False)
|
230 |
|
231 |
btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out])
|
232 |
|