Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,12 +12,12 @@ def respond(message,history):
|
|
| 12 |
|
| 13 |
response = client.chat_completion(
|
| 14 |
messages,
|
| 15 |
-
max_tokens=100
|
| 16 |
temperature=0.2
|
| 17 |
)
|
| 18 |
|
| 19 |
return response['choices'][0]['message']['content'].strip()
|
| 20 |
|
| 21 |
-
chatbot = gr.ChatInterface(
|
| 22 |
|
| 23 |
chatbot.launch()
|
|
|
|
| 12 |
|
| 13 |
response = client.chat_completion(
|
| 14 |
messages,
|
| 15 |
+
max_tokens=100,
|
| 16 |
temperature=0.2
|
| 17 |
)
|
| 18 |
|
| 19 |
return response['choices'][0]['message']['content'].strip()
|
| 20 |
|
| 21 |
+
chatbot = gr.ChatInterface(respond, type='messages')
|
| 22 |
|
| 23 |
chatbot.launch()
|