amadinahmed
commited on
Commit
·
b213879
1
Parent(s):
de276ed
sss
Browse files
app.py
CHANGED
@@ -119,9 +119,7 @@ def predict_image(inp):
|
|
119 |
|
120 |
|
121 |
with gr.Blocks(title="Trash Classification", css="#custom_header {min-height: 3rem} #custom_title {min-height: 3rem; text-align: center}") as demo:
|
122 |
-
|
123 |
-
gr.Markdown("Gradio Inference interface for classification of trash and recyclables. To use it, simply upload your image, or click one of the examples to load them. Images uploaded are never saved or indexed.", elem_id="custom_title")
|
124 |
-
|
125 |
with gr.Column():
|
126 |
with gr.Column():
|
127 |
with gr.Box():
|
@@ -131,13 +129,12 @@ with gr.Blocks(title="Trash Classification", css="#custom_header {min-height: 3r
|
|
131 |
btn = gr.Button(value="Submit")
|
132 |
btn.style(full_width=True)
|
133 |
with gr.Column():
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
item_probs = gr.outputs.Label(label="Item Prediction")
|
141 |
|
142 |
gr.Examples(
|
143 |
examples=examples,
|
|
|
119 |
|
120 |
|
121 |
with gr.Blocks(title="Trash Classification", css="#custom_header {min-height: 3rem} #custom_title {min-height: 3rem; text-align: center}") as demo:
|
122 |
+
|
|
|
|
|
123 |
with gr.Column():
|
124 |
with gr.Column():
|
125 |
with gr.Box():
|
|
|
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 |
+
recycling_qn = gr.outputs.Label(label="Is this recyclable?")
|
134 |
+
recycling_advice = gr.outputs.Label(label="It is not recyclable when:")
|
135 |
+
with gr.Row():
|
136 |
+
material_probs = gr.outputs.Label(label="Material Prediction")
|
137 |
+
item_probs = gr.outputs.Label(label="Item Prediction")
|
|
|
138 |
|
139 |
gr.Examples(
|
140 |
examples=examples,
|