amadinahmed
commited on
Commit
·
fb3eaa4
1
Parent(s):
b213879
dada
Browse files
app.py
CHANGED
@@ -122,19 +122,21 @@ with gr.Blocks(title="Trash Classification", css="#custom_header {min-height: 3r
|
|
122 |
|
123 |
with gr.Column():
|
124 |
with gr.Column():
|
125 |
-
with gr.Box():
|
126 |
gr.Markdown("## Inputs", elem_id="custom_header")
|
127 |
input_image = gr.Image(label="Input Image")
|
128 |
input_image.style(height=240)
|
129 |
btn = gr.Button(value="Submit")
|
130 |
btn.style(full_width=True)
|
131 |
-
with gr.Column():
|
132 |
gr.Markdown("## Outputs", elem_id="custom_header")
|
133 |
-
|
134 |
-
|
|
|
|
|
|
|
135 |
with gr.Row():
|
136 |
material_probs = gr.outputs.Label(label="Material Prediction")
|
137 |
-
item_probs = gr.outputs.
|
138 |
|
139 |
gr.Examples(
|
140 |
examples=examples,
|
|
|
122 |
|
123 |
with gr.Column():
|
124 |
with gr.Column():
|
|
|
125 |
gr.Markdown("## Inputs", elem_id="custom_header")
|
126 |
input_image = gr.Image(label="Input Image")
|
127 |
input_image.style(height=240)
|
128 |
btn = gr.Button(value="Submit")
|
129 |
btn.style(full_width=True)
|
130 |
+
with gr.Column(variant="panel", scale=2):
|
131 |
gr.Markdown("## Outputs", elem_id="custom_header")
|
132 |
+
gr.Markdown("### Can it Recycle?")
|
133 |
+
recycling_qn = gr.outputs.Markdown(label ="### Can it Recycle?")
|
134 |
+
gr.Markdown("### How to recycle?")
|
135 |
+
recycling_advice = gr.outputs.Label()
|
136 |
+
item_probs = gr.outputs.Markdown()
|
137 |
with gr.Row():
|
138 |
material_probs = gr.outputs.Label(label="Material Prediction")
|
139 |
+
item_probs = gr.outputs.Markdown()
|
140 |
|
141 |
gr.Examples(
|
142 |
examples=examples,
|