Spaces:
Sleeping
Sleeping
Commit ·
7a489b1
1
Parent(s): 4246f90
Model prompt change
Browse files35 unmodified lines3637383940414213 unmodified lines5657585960616212 unmodified lines7576777879808135 unmodified linesmodel=chat_model,tokenizer=tokenizer,device_map="auto",max_new_tokens=100)def clean_chat_output(full_text):13 unmodified lines"content": ("You are an expert in waste sorting. ""You ALWAYS answer using exactly two bullet points:\n""• Recycling type: <one short category>\n""• Disposal: <clear, detailed correct sentence>\n""No extra text, no introductions, no explanations.")12 unmodified linesoutputs = pipe(prompt,max_new_tokens=60,do_sample=False)35 unmodified lines3637383940414213 unmodified lines5657585960616212 unmodified lines7576777879808135 unmodified linesmodel=chat_model,tokenizer=tokenizer,device_map="auto",max_new_tokens=80)def clean_chat_output(full_text):13 unmodified lines"content": ("You are an expert in waste sorting. ""You ALWAYS answer using exactly two bullet points:\n""• Recycling type: <Item category>\n""• Disposal: <clear, detailed correct sentence>\n""No extra text, no introductions, no explanations.")12 unmodified linesoutputs = pipe(prompt,max_new_tokens=80,do_sample=False)
app.py+3-3