Slimy619 commited on
Commit
f037927
·
1 Parent(s): 354e87f

Update space

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,10 +104,10 @@ class ChatLLM:
104
  repeat_penalty=repeat_penalty,
105
  stop=TOKEN_STOP,
106
  ):
107
- answer = output["choices"][0]["text"]
108
  history[-1][1] += answer # here we append the answer to the last message in the history
109
  # stream the response
110
- yield history, answer
111
 
112
 
113
  def user(message, history):
 
104
  repeat_penalty=repeat_penalty,
105
  stop=TOKEN_STOP,
106
  ):
107
+ answer = output
108
  history[-1][1] += answer # here we append the answer to the last message in the history
109
  # stream the response
110
+ yield history, history
111
 
112
 
113
  def user(message, history):