Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,8 @@ def talk(prompt, history):
|
|
117 |
print("check 6")
|
118 |
|
119 |
# indicates the end of a sequence
|
120 |
-
stream = model.create_chat_completion(messages = messages, max_tokens=1000, stop=["</s>"], stream=False)
|
|
|
121 |
# print(f"{stream}")
|
122 |
print("check 7")
|
123 |
print(stream['choices'][0]['message']['content'])
|
|
|
117 |
print("check 6")
|
118 |
|
119 |
# indicates the end of a sequence
|
120 |
+
# stream = model.create_chat_completion(messages = messages, max_tokens=1000, stop=["</s>"], stream=False)
|
121 |
+
stream = model.create_chat_completion(messages = messages, stream=False)
|
122 |
# print(f"{stream}")
|
123 |
print("check 7")
|
124 |
print(stream['choices'][0]['message']['content'])
|