Spaces:
Sleeping
Sleeping
Commit
·
a447be8
1
Parent(s):
20dda03
app.py
CHANGED
@@ -215,36 +215,36 @@ with gr.Blocks(title="Trash Classification", css="#custom_header {min-height: 3r
|
|
215 |
btn.click(predict_image, inputs=[input_image],
|
216 |
outputs=[material_probs, item_probs, recycling_qn, recycling_advice])
|
217 |
|
218 |
-
css = """
|
219 |
-
#warning {background-color: #FFCCCB}
|
220 |
-
#custom_header {min-height: 3rem} #custom_title {min-height: 3rem; text-align: center}
|
221 |
-
.feedback textarea {font-size: 24px !important}
|
222 |
-
"""
|
223 |
-
|
224 |
-
with gr.Blocks(title="Green Genius", css=css, theme=gr.themes.Monochrome()
|
225 |
-
) as demo:
|
226 |
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
-
|
247 |
-
|
248 |
|
249 |
if __name__ == "__main__":
|
250 |
demo.launch(show_error=True)
|
|
|
215 |
btn.click(predict_image, inputs=[input_image],
|
216 |
outputs=[material_probs, item_probs, recycling_qn, recycling_advice])
|
217 |
|
218 |
+
# css = """
|
219 |
+
# #warning {background-color: #FFCCCB}
|
220 |
+
# #custom_header {min-height: 3rem} #custom_title {min-height: 3rem; text-align: center}
|
221 |
+
# .feedback textarea {font-size: 24px !important}
|
222 |
+
# """
|
223 |
+
|
224 |
+
# with gr.Blocks(title="Green Genius", css=css, theme=gr.themes.Monochrome()
|
225 |
+
# ) as demo:
|
226 |
|
227 |
+
# with gr.Column():
|
228 |
+
# with gr.Column():
|
229 |
+
# input_image = gr.Image(label="Input Image")
|
230 |
+
# input_image.style(height=240)
|
231 |
+
# btn = gr.Button(value="Submit")
|
232 |
+
# btn.style(full_width=True)
|
233 |
+
# with gr.Column():
|
234 |
+
# gr.Markdown("# We think this is?",elem_id="custom_header")
|
235 |
+
# with gr.Row():
|
236 |
+
# item_probs = gr.outputs.Label(label=" ",num_top_classes=1)
|
237 |
+
# material_probs = gr.outputs.Label(label=" ",num_top_classes=1)
|
238 |
+
# gr.Markdown("# Can it Recycle?", elem_id="custom_header")
|
239 |
+
# recycling_qn = gr.outputs.Label(label=" ",)
|
240 |
+
# gr.Markdown("# This Cant be Recycled when: ",elem_id="custom_header")
|
241 |
+
# recycling_advice = gr.outputs.Label(label=" ",)
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
+
# btn.click(predict_image, inputs=[input_image],
|
247 |
+
# outputs=[material_probs, item_probs, recycling_qn, recycling_advice])
|
248 |
|
249 |
if __name__ == "__main__":
|
250 |
demo.launch(show_error=True)
|