Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,9 @@ def random_response(message, history):
|
|
| 11 |
messages.append({"role":"user", "content":message})
|
| 12 |
|
| 13 |
response = client.chat_completion(
|
| 14 |
-
|
| 15 |
-
|
|
|
|
| 16 |
)
|
| 17 |
return response.choices[0].message.content.strip()
|
| 18 |
|
|
|
|
| 11 |
messages.append({"role":"user", "content":message})
|
| 12 |
|
| 13 |
response = client.chat_completion(
|
| 14 |
+
model="Qwen/Qwen2.5-7B-Instruct",
|
| 15 |
+
messages=messages,
|
| 16 |
+
max_tokens = 100
|
| 17 |
)
|
| 18 |
return response.choices[0].message.content.strip()
|
| 19 |
|