Namitg02 commited on
Commit
7dec8b2
·
verified ·
1 Parent(s): b1641d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -149,7 +149,7 @@ def talk(prompt, history):
149
  pprint.pprint(stream)
150
  text = ""
151
  for output in stream:
152
- text += output["choices"][0]["text"]
153
  yield text
154
 
155
  # preparing tokens for model input
 
149
  pprint.pprint(stream)
150
  text = ""
151
  for output in stream:
152
+ text += output['choices'][0]['message']['content']
153
  yield text
154
 
155
  # preparing tokens for model input