Namitg02 commited on
Commit
1042c4f
·
verified ·
1 Parent(s): 5f1c4df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -143,7 +143,8 @@ def talk(prompt, history):
143
  print(f"{stream}")
144
  print("check 7")
145
  print(stream['choices'][0]['message']['content'])
146
- # text = []
 
147
  # for output in stream:
148
  # text += output['choices'][0]
149
  # print(f"{output}")
 
143
  print(f"{stream}")
144
  print("check 7")
145
  print(stream['choices'][0]['message']['content'])
146
+ return(stream['choices'][0]['message']['content'])
147
+ # text = []
148
  # for output in stream:
149
  # text += output['choices'][0]
150
  # print(f"{output}")