Update app.py
Browse files
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 |
-
|
|
|
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}")
|