amadinahmed commited on
Commit
4b77d63
·
1 Parent(s): d6c991f
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -128,8 +128,6 @@ css = """
128
  with gr.Blocks(title="Trash Classification", css=css) as demo:
129
 
130
  with gr.Column():
131
- with gr.Row(visible=True) as results_label:
132
- item_probs = gr.outputs.Label(num_top_classes=1)
133
  with gr.Column():
134
  gr.Markdown("## Inputs", elem_id="custom_header")
135
  input_image = gr.Image(label="Input Image")
@@ -138,10 +136,12 @@ with gr.Blocks(title="Trash Classification", css=css) as demo:
138
  btn.style(full_width=True)
139
  with gr.Column():
140
  gr.Markdown("## Outputs", elem_id="custom_header")
 
 
141
  gr.Markdown("### Can it Recycle?")
142
- recycling_advice = gr.outputs.Textbox(label="It is not recyclable when:")
143
  gr.Markdown("### How to recycle?")
144
- recycling_qn = gr.outputs.Label()
145
 
146
 
147
  btn.click(predict_image, inputs=[input_image],
 
128
  with gr.Blocks(title="Trash Classification", css=css) as demo:
129
 
130
  with gr.Column():
 
 
131
  with gr.Column():
132
  gr.Markdown("## Inputs", elem_id="custom_header")
133
  input_image = gr.Image(label="Input Image")
 
136
  btn.style(full_width=True)
137
  with gr.Column():
138
  gr.Markdown("## Outputs", elem_id="custom_header")
139
+ gr.Markdown("### We think this is?")
140
+ recycling_qn = gr.outputs.Label()
141
  gr.Markdown("### Can it Recycle?")
142
+ recycling_advice = gr.outputs.Label()
143
  gr.Markdown("### How to recycle?")
144
+ item_probs = gr.outputs.Label(label="Item Prediction")
145
 
146
 
147
  btn.click(predict_image, inputs=[input_image],