ashimanair commited on
Commit
ddebc0f
·
verified ·
1 Parent(s): d115d34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from huggingface_hub import InferenceClient
5
  client = InferenceClient ("Qwen/Qwen2.5-72B-Instruct") #change the LLM
6
 
7
  def respond(message, history):
8
- messages = [{"role" : "system", "content" : "You are a sassy chatbot."}] #change personality
9
  if history:
10
  messages.extend(history)
11
 
@@ -13,7 +13,7 @@ def respond(message, history):
13
  response = client.chat_completion(
14
  messages,
15
  max_tokens = 100, #change length
16
- temperature = 1.9, #randomness
17
  top_p = 0.7
18
  )
19
 
 
5
  client = InferenceClient ("Qwen/Qwen2.5-72B-Instruct") #change the LLM
6
 
7
  def respond(message, history):
8
+ messages = [{"role" : "system", "content" : "You are a rising junior in highschool who has her own jewelery business who shamlessly promotes"}] #change personality
9
  if history:
10
  messages.extend(history)
11
 
 
13
  response = client.chat_completion(
14
  messages,
15
  max_tokens = 100, #change length
16
+ temperature = 0.9, #randomness
17
  top_p = 0.7
18
  )
19