Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def respond(message, history):
|
|
| 15 |
response = client.chat_completion(messages, max_tokens = 100)
|
| 16 |
|
| 17 |
|
| 18 |
-
return response
|
| 19 |
|
| 20 |
def echo(messaged, history):
|
| 21 |
my_list = ["sure", "ask again", "maybe"]
|
|
|
|
| 15 |
response = client.chat_completion(messages, max_tokens = 100)
|
| 16 |
|
| 17 |
|
| 18 |
+
return response["choices"][0]["message"]["content"].strip()
|
| 19 |
|
| 20 |
def echo(messaged, history):
|
| 21 |
my_list = ["sure", "ask again", "maybe"]
|