Nunzio commited on
Commit
c924f71
·
1 Parent(s): 87e9613

new style

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -78,15 +78,10 @@ with gr.Blocks(title="Semantic Segmentation Predictors") as demo:
78
  error_text = gr.Markdown("", visible=False)
79
  gr.Markdown("The legend of the classes is the following (format **name** -> **color**)")
80
  with gr.Row():
81
- for i in range(0, len(legendHandling()), 2):
 
82
  with gr.Row():
83
- gr.Markdown(f"**{legendHandling()[i][1]}** → {legendHandling()[i][2]}")
84
-
85
- if i + 1 < len(legendHandling()):
86
- gr.Markdown(f"**{legendHandling()[i + 1][1]}** → {legendHandling()[i + 1][2]}")
87
- else:
88
- gr.Markdown("") # Fills the second column if odd number of items
89
-
90
 
91
  with gr.Row():
92
  gr.Markdown("## Preloaded images to be used for testing the model")
 
78
  error_text = gr.Markdown("", visible=False)
79
  gr.Markdown("The legend of the classes is the following (format **name** -> **color**)")
80
  with gr.Row():
81
+ legend = legendHandling()
82
+ for i in range(0, len(legend), 2):
83
  with gr.Row():
84
+ gr.Markdown(f"**{legend[i][1]}** → {legend[i][2]} \t\t\t **{legend[i+1][1]}** → {legend[i+1][2]}")
 
 
 
 
 
 
85
 
86
  with gr.Row():
87
  gr.Markdown("## Preloaded images to be used for testing the model")