amadinahmed commited on
Commit
784208c
·
1 Parent(s): b032c69
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -127,8 +127,8 @@ css = """
127
  with gr.Blocks(title="Trash Classification", css=css) as demo:
128
 
129
  with gr.Column():
130
- with gr.Row():
131
- item_probs = gr.outputs.Label(num_top_classes=1,visible=False)
132
  with gr.Column():
133
  gr.Markdown("## Inputs", elem_id="custom_header")
134
  input_image = gr.Image(label="Input Image")
@@ -142,7 +142,7 @@ with gr.Blocks(title="Trash Classification", css=css) as demo:
142
  gr.Markdown("### How to recycle?")
143
  recycling_qn = gr.outputs.Label()
144
  def submit_visible():
145
- return {item_probs: gr.outputs.Label(num_top_classes=1, visible=True)}
146
 
147
 
148
 
 
127
  with gr.Blocks(title="Trash Classification", css=css) as demo:
128
 
129
  with gr.Column():
130
+ with gr.Row(visible=False) as results_label:
131
+ item_probs = gr.outputs.Label(num_top_classes=1)
132
  with gr.Column():
133
  gr.Markdown("## Inputs", elem_id="custom_header")
134
  input_image = gr.Image(label="Input Image")
 
142
  gr.Markdown("### How to recycle?")
143
  recycling_qn = gr.outputs.Label()
144
  def submit_visible():
145
+ return {results_label: gr.update(visible=True)}
146
 
147
 
148