vlithish commited on
Commit
7345cdf
·
verified ·
1 Parent(s): 6dd53f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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 default to Compostable
18
- return " Compostable Waste (Green Bin)"
19
 
20
  # Gradio UI
21
  iface = gr.Interface(
22
  fn=classify_waste,
23
  inputs="text",
24
- outputs="text", # Only text output now
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
+