Spaces:
Runtime error
Runtime error
Guillermo Uribe Vicencio
commited on
Commit
·
4f7c921
1
Parent(s):
6fbd8f7
app.py
CHANGED
|
@@ -275,19 +275,21 @@ with gr.Blocks() as demo:
|
|
| 275 |
|
| 276 |
with gr.Row():
|
| 277 |
with gr.Column():
|
| 278 |
-
|
|
|
|
| 279 |
x="label",
|
| 280 |
y="qtt",
|
| 281 |
title="Simple Bar Plot with made up data",
|
| 282 |
tooltip=["label", "qtt"])
|
| 283 |
-
gr.LinePlot(bar_data,
|
| 284 |
-
|
| 285 |
-
|
|
|
|
| 286 |
with gr.Column():
|
| 287 |
out = gr.Image(image_mode='RGB', scale=10, label='Model prediction')
|
| 288 |
# gr.Image(value='Legend.png', image_mode='RGB', scale=2, show_label=False)
|
| 289 |
|
| 290 |
-
btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out,
|
| 291 |
|
| 292 |
with gr.Row():
|
| 293 |
gr.Markdown(value='### Model prediction legend')
|
|
|
|
| 275 |
|
| 276 |
with gr.Row():
|
| 277 |
with gr.Column():
|
| 278 |
+
|
| 279 |
+
plot = gr.BarPlot(bar_data,
|
| 280 |
x="label",
|
| 281 |
y="qtt",
|
| 282 |
title="Simple Bar Plot with made up data",
|
| 283 |
tooltip=["label", "qtt"])
|
| 284 |
+
#gr.LinePlot(bar_data,
|
| 285 |
+
# x='label',
|
| 286 |
+
# y='qtt')
|
| 287 |
+
|
| 288 |
with gr.Column():
|
| 289 |
out = gr.Image(image_mode='RGB', scale=10, label='Model prediction')
|
| 290 |
# gr.Image(value='Legend.png', image_mode='RGB', scale=2, show_label=False)
|
| 291 |
|
| 292 |
+
btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out,plot])
|
| 293 |
|
| 294 |
with gr.Row():
|
| 295 |
gr.Markdown(value='### Model prediction legend')
|