Commit History

  1. Create requirements.txt Running

    Verified signature
    725bc45
  2. Update app.py

    Verified signature
    4372096
  3. Update app.py

    Verified signature
    a707f72

  1. Update app.py

    Verified signature
    ce2f93e
  2. Update app.py

    Verified signature
    c0795c6
  3. Update app.py

    Verified signature
    e327f54
  4. Update app.py

    Verified signature
    7345cdf
  5. Update app.py

    Verified signature
    6dd53f5
  6. Delete bins

    Verified signature
    9968618
  7. Update bins⁠

    Verified signature
    5818608
  8. Update bins⁠

    Verified signature
    428e84e
  9. Update app.py

    Verified signature
    d0770f2
  10. Create bins/⁠

    Verified signature
    189441e
  11. gradio⁠

    Verified signature
    8e684ad
  12. gradio⁠

    Verified signature
    04d7307
  13. gradio⁠

    Verified signature
    c33843a
  14. Create app.py⁠

    Verified signature
    7cf723c
  15. GRADIO

    Verified signature
    b370247
  16. gradio

    Verified signature
    6f5f080
  17. import gradio as gr # Waste classification function def classify_waste(item): item = item.lower() if any(word in item for word in ["paper", "plastic", "glass", "bottle", "metal", "tin", "cardboard"]): return "♻️ Recyclable - Please place in the recycling bin." elif any(word in item for word in ["fruit", "vegetable", "food", "banana", "apple", "peel", "veg"]): return "🌱 Compostable - Add it to compost or organic waste bin." elif any(word in item for word in ["syringe", "battery", "medicine", "chemical", "paint"]): return "⚠️ Harmful/Decomposable - Dispose at hazardous waste collection." else: return "🗑️ Trash - Dispose in general waste bin." # Gradio Interface iface = gr.Interface( fn=classify_waste, inputs=gr.Textbox(label="Enter item description"), outputs=gr.Textbox(label="Classification"), title="EcoSort ♻️", description="Type the name of a waste item (e.g., 'banana peel', 'plastic bottle', 'battery') and get eco-friendly disposal advice." ) # Run app if __name__ == "__main__": iface.launch()

    Verified signature
    083d24e
  18. initial commit

    Verified signature
    92f23b0