haxerwddle commited on
Commit
d3dad87
·
1 Parent(s): 3dde239

prompt model change

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -40,10 +40,20 @@ chat_model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-large")
40
 
41
  def explain_recycling(class_label):
42
  prompt = f"""
43
- Give recycling instructions for item {class_label}.
44
- You should:
45
- - Suggest ways to dispose of the item>\n
46
- -Answer in 1 - 2 sentences.
 
 
 
 
 
 
 
 
 
 
47
  """
48
 
49
  inputs = tokenizer(prompt, return_tensors="pt").input_ids
 
40
 
41
  def explain_recycling(class_label):
42
  prompt = f"""
43
+ You are a waste management expert.
44
+
45
+ The waste item is classified as: **{class_label}**
46
+
47
+ Provide a detailed, well-structured explanation including:
48
+
49
+ 1. **Recycling type** (organic, recyclable plastic, paper, metal, glass, hazardous, landfill-only, compost, etc.)
50
+ 2. **Why this material belongs to this category** (short analysis)
51
+ 3. **How to dispose of it correctly**
52
+ 4. **How it is recycled or processed**
53
+ 5. **Environmental impact if disposed improperly**
54
+ 6. **Optional tips for reducing waste or reusing the item**
55
+
56
+ Write the response in friendly, clear, detailed paragraphs.
57
  """
58
 
59
  inputs = tokenizer(prompt, return_tensors="pt").input_ids