haxerwddle commited on
Commit
33529f1
·
1 Parent(s): 5c8319a

prompt model change

Browse files
Files changed (1) hide show
  1. app.py +29 -5
app.py CHANGED
@@ -41,19 +41,43 @@ chat_model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")
41
  def explain_recycling(class_label):
42
  prompt = f"""
43
  Example 1:
44
- Item: banana peel
45
- Recycling type: Organic
46
- Disposal: Compost or food-waste bin
47
- Processing: Decomposes in composting facilities
48
- • Tip: Use a home composter
49
 
50
  Example 2:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  Item: aluminum can
52
  • Recycling type: Metal
53
  • Disposal: Rinse and place in metal recycling
54
  • Processing: Melted and recast into new cans
55
  • Tip: Crush cans to save space
56
 
 
 
 
 
 
 
 
57
  Now answer in the same 4-bullet format for:
58
  Item: {class_label}
59
  """
 
41
  def explain_recycling(class_label):
42
  prompt = f"""
43
  Example 1:
44
+ Recycling type: Glass
45
+ Disposal: Rinse and place in glass recycling
46
+ Processing: Crushed into cullet and remelted
47
+ Tip: Reuse bottles for storage
 
48
 
49
  Example 2:
50
+ • Recycling type: Paper
51
+ • Disposal: Keep dry and place in paper recycling
52
+ • Processing: Pulped and formed into new paper
53
+ • Tip: Use both sides before discarding
54
+
55
+ Example 3:
56
+ • Recycling type: Cardboard
57
+ • Disposal: Flatten and recycle
58
+ • Processing: Pulped and remade into cardboard sheets
59
+ • Tip: Reuse boxes for storage
60
+
61
+ Example 4:
62
+ • Recycling type: Plastic
63
+ • Disposal: Check recycling number and recycle if accepted
64
+ • Processing: Shredded and melted into pellets
65
+ • Tip: Use refillable bottles
66
+
67
+ Example 5:
68
  Item: aluminum can
69
  • Recycling type: Metal
70
  • Disposal: Rinse and place in metal recycling
71
  • Processing: Melted and recast into new cans
72
  • Tip: Crush cans to save space
73
 
74
+ Example 6:
75
+ Item: food wrapper
76
+ • Recycling type: Trash
77
+ • Disposal: Place in landfill bin
78
+ • Processing: Landfilled or incinerated
79
+ • Tip: Avoid single-use packaging
80
+
81
  Now answer in the same 4-bullet format for:
82
  Item: {class_label}
83
  """