Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,13 +28,13 @@ def respond(message, history):
|
|
| 28 |
)
|
| 29 |
|
| 30 |
response = client.chat_completion(
|
| 31 |
-
messages, max_tokens = 100
|
| 32 |
)
|
| 33 |
|
| 34 |
return response['choices'][0]['message']['content'].strip()
|
| 35 |
|
| 36 |
|
| 37 |
-
chatbot = gr.ChatInterface(respond, type="messages"
|
| 38 |
#temperature and top_p controls randomness
|
| 39 |
|
| 40 |
chatbot.launch()
|
|
|
|
| 28 |
)
|
| 29 |
|
| 30 |
response = client.chat_completion(
|
| 31 |
+
messages, max_tokens = 100,temperature=1.3, top_p = 0.5
|
| 32 |
)
|
| 33 |
|
| 34 |
return response['choices'][0]['message']['content'].strip()
|
| 35 |
|
| 36 |
|
| 37 |
+
chatbot = gr.ChatInterface(respond, type="messages")
|
| 38 |
#temperature and top_p controls randomness
|
| 39 |
|
| 40 |
chatbot.launch()
|