Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,14 +14,14 @@ def classify_waste(item):
|
|
| 14 |
elif item in harmful:
|
| 15 |
return "⚠️ Harmful/Non-Decomposable Waste (Red Bin)"
|
| 16 |
else:
|
| 17 |
-
# Unknown items
|
| 18 |
-
return "
|
| 19 |
|
| 20 |
# Gradio UI
|
| 21 |
iface = gr.Interface(
|
| 22 |
fn=classify_waste,
|
| 23 |
inputs="text",
|
| 24 |
-
outputs="text",
|
| 25 |
title="♻️ Eco-Friendly Waste Classifier",
|
| 26 |
description="Enter a waste item (e.g., vegetable, plastic, syringe) and see which bin it belongs to!"
|
| 27 |
)
|
|
@@ -32,3 +32,5 @@ if __name__ == "__main__":
|
|
| 32 |
|
| 33 |
|
| 34 |
|
|
|
|
|
|
|
|
|
| 14 |
elif item in harmful:
|
| 15 |
return "⚠️ Harmful/Non-Decomposable Waste (Red Bin)"
|
| 16 |
else:
|
| 17 |
+
# Unknown items go to General Waste (Grey Bin)
|
| 18 |
+
return "🚮 General Waste (Grey Bin)"
|
| 19 |
|
| 20 |
# Gradio UI
|
| 21 |
iface = gr.Interface(
|
| 22 |
fn=classify_waste,
|
| 23 |
inputs="text",
|
| 24 |
+
outputs="text",
|
| 25 |
title="♻️ Eco-Friendly Waste Classifier",
|
| 26 |
description="Enter a waste item (e.g., vegetable, plastic, syringe) and see which bin it belongs to!"
|
| 27 |
)
|
|
|
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
+
|
| 36 |
+
|