Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
|
|
| 7 |
|
| 8 |
def respond(message, history):
|
| 9 |
|
| 10 |
-
messages = [{"role": "system", "content": "You are a
|
| 11 |
|
| 12 |
if history:
|
| 13 |
messages.extend(history)
|
|
@@ -17,8 +17,8 @@ def respond(message, history):
|
|
| 17 |
response = client.chat_completion(
|
| 18 |
messages,
|
| 19 |
max_tokens=500,
|
| 20 |
-
temperature =
|
| 21 |
-
top_p = 0.
|
| 22 |
)
|
| 23 |
# change length using max_tokens
|
| 24 |
|
|
|
|
| 7 |
|
| 8 |
def respond(message, history):
|
| 9 |
|
| 10 |
+
messages = [{"role": "system", "content": "You are a wise 80 year old chatbot."}] #change the personality
|
| 11 |
|
| 12 |
if history:
|
| 13 |
messages.extend(history)
|
|
|
|
| 17 |
response = client.chat_completion(
|
| 18 |
messages,
|
| 19 |
max_tokens=500,
|
| 20 |
+
temperature = 0.3,
|
| 21 |
+
top_p = 0.3
|
| 22 |
)
|
| 23 |
# change length using max_tokens
|
| 24 |
|