ztime commited on
Commit
d99a054
1 Parent(s): fae8ffe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def predict(input, chatbot, max_length, top_p, temperature, history):
22
  response = ""
23
  history.append(input)
24
 
25
- for output in llm(input, stream=True, temperature=temperature, top_p=top_p, max_tokens=max_length, stop=["<|im_token|>"]):
26
  piece = output['choices'][0]['text']
27
  response += piece
28
  chatbot[-1] = (chatbot[-1][0], response)
 
22
  response = ""
23
  history.append(input)
24
 
25
+ for output in llm(input, stream=True, temperature=temperature, top_p=top_p, max_tokens=max_length, stop=["<|im_end|>"]):
26
  piece = output['choices'][0]['text']
27
  response += piece
28
  chatbot[-1] = (chatbot[-1][0], response)