Nathan Gebreab commited on
Commit
9450197
·
1 Parent(s): 1dc353f

fixed temperature of the chatbot

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def generate_intro(query):
113
  prompt,
114
  max_new_tokens=60,
115
  do_sample=True,
116
- temperature=2.0
117
  )[0]["generated_text"]
118
 
119
  intro = intro.split("<|start_header_id|>assistant<|end_header_id|>")[-1].strip()
 
113
  prompt,
114
  max_new_tokens=60,
115
  do_sample=True,
116
+ temperature=0.7
117
  )[0]["generated_text"]
118
 
119
  intro = intro.split("<|start_header_id|>assistant<|end_header_id|>")[-1].strip()