haxerwddle commited on
Commit
87e3d93
·
1 Parent(s): 8dcb13a

prompt model change

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -41,9 +41,7 @@ chat_model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")
41
  def explain_recycling(class_label):
42
  prompt = f"""
43
  Item: {class_label}
44
- Provide a recycling instruction in exactly this format:
45
- • Recycling type: <answer>\n
46
- • Disposal: <answer>\n
47
  """
48
  inputs = tokenizer(prompt, return_tensors="pt").input_ids
49
 
 
41
  def explain_recycling(class_label):
42
  prompt = f"""
43
  Item: {class_label}
44
+ Provide a short recycling instructions. No repeating.
 
 
45
  """
46
  inputs = tokenizer(prompt, return_tensors="pt").input_ids
47