Nunzio commited on
Commit
c952334
·
1 Parent(s): 6f3da25
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -80,10 +80,15 @@ with gr.Blocks(title="Semantic Segmentation Predictors") as demo:
80
  with gr.Row():
81
  legend = legendHandling()
82
  for i in range(0, len(legend), 2):
83
- if i + 1 < len(legend):
84
- gr.Markdown(f"**{legend[i][1]}** → {legend[i][2]} \t\t\t **{legend[i+1][1]}** → {legend[i+1][2]}")
85
- else:
86
  gr.Markdown(f"**{legend[i][1]}** → {legend[i][2]}")
 
 
 
 
 
 
87
 
88
  with gr.Row():
89
  gr.Markdown("## Preloaded images to be used for testing the model")
 
80
  with gr.Row():
81
  legend = legendHandling()
82
  for i in range(0, len(legend), 2):
83
+ with gr.Row():
84
+ with gr.Column(scale=1):
 
85
  gr.Markdown(f"**{legend[i][1]}** → {legend[i][2]}")
86
+ with gr.Column(scale=1):
87
+ if i + 1 < len(legend):
88
+ gr.Markdown(f"**{legend[i+1][1]}** → {legend[i+1][2]}")
89
+ else:
90
+ gr.Markdown("") # Keeps spacing consistent if list is odd
91
+
92
 
93
  with gr.Row():
94
  gr.Markdown("## Preloaded images to be used for testing the model")