Slimy619 commited on
Commit
86c655a
·
1 Parent(s): 6502352

Update space

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -104,7 +104,7 @@ class ChatLLM:
104
  repeat_penalty=repeat_penalty,
105
  stop=TOKEN_STOP,
106
  ):
107
- answer = output
108
  print("this is the answer")
109
  print(answer)
110
  history[-1][1] += answer # here we append the answer to the last message in the history
 
104
  repeat_penalty=repeat_penalty,
105
  stop=TOKEN_STOP,
106
  ):
107
+ answer = output["choices"][0]["text"]
108
  print("this is the answer")
109
  print(answer)
110
  history[-1][1] += answer # here we append the answer to the last message in the history