Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,14 +25,14 @@ def respond(message, history):
|
|
| 25 |
|
| 26 |
for chunk in client.chat_completion(
|
| 27 |
messages,
|
| 28 |
-
max_tokens=256,
|
| 29 |
-
temperature=0.7,
|
| 30 |
-
top_p=0.9,
|
| 31 |
-
stream=True,
|
| 32 |
):
|
| 33 |
token = chunk.choices[0].delta.content
|
| 34 |
response += token
|
| 35 |
yield response
|
| 36 |
|
| 37 |
chatbot = gr.ChatInterface(respond)
|
| 38 |
-
chatbot.launch(debug=True)
|
|
|
|
| 25 |
|
| 26 |
for chunk in client.chat_completion(
|
| 27 |
messages,
|
| 28 |
+
max_tokens = 256,
|
| 29 |
+
temperature = 0.7,
|
| 30 |
+
top_p = 0.9,
|
| 31 |
+
stream = True,
|
| 32 |
):
|
| 33 |
token = chunk.choices[0].delta.content
|
| 34 |
response += token
|
| 35 |
yield response
|
| 36 |
|
| 37 |
chatbot = gr.ChatInterface(respond)
|
| 38 |
+
chatbot.launch(debug = True)
|