limeiz commited on
Commit
b07a1d6
·
verified ·
1 Parent(s): 2ac54c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 sassy chatbot."}] #change the personality
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 = 2,
21
- top_p = 0.1
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