Spaces:
Runtime error
Runtime error
Guillermo Uribe Vicencio
commited on
Commit
·
6fbd8f7
1
Parent(s):
e90ef37
app.py
CHANGED
|
@@ -216,7 +216,7 @@ def inference_on_file(target_image, model, custom_test_pipeline, map_resume):
|
|
| 216 |
|
| 217 |
output=apply_color_map(output,map_resume).transpose((1,2,0))
|
| 218 |
bar_data = pd.DataFrame(map_resume)
|
| 219 |
-
return rgb1,rgb2,rgb3,output
|
| 220 |
|
| 221 |
def process_test_pipeline(custom_test_pipeline, bands=None):
|
| 222 |
|
|
@@ -287,7 +287,7 @@ with gr.Blocks() as demo:
|
|
| 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')
|
|
|
|
| 216 |
|
| 217 |
output=apply_color_map(output,map_resume).transpose((1,2,0))
|
| 218 |
bar_data = pd.DataFrame(map_resume)
|
| 219 |
+
return rgb1,rgb2,rgb3,output,bar_data
|
| 220 |
|
| 221 |
def process_test_pipeline(custom_test_pipeline, bands=None):
|
| 222 |
|
|
|
|
| 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,bar_data])
|
| 291 |
|
| 292 |
with gr.Row():
|
| 293 |
gr.Markdown(value='### Model prediction legend')
|