Sadmo commited on
Commit
0272c09
·
verified ·
1 Parent(s): 82c656b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,14 +7,14 @@ client = InferenceClient("google/gemma-3-27b-it")
7
 
8
 
9
  def respond(message, history):
10
- messages = [{"role": "system", "content":"You are a friendly chatbot."}] # change the personality here
11
  if history:
12
  messages.extend(history)
13
  messages.append({"role": "user", "content": message})
14
 
15
  response = client.chat_completion(
16
  messages,
17
- max_tokens=200 # change the length of message,
18
  temperature = 0.1
19
  top_p = 0.7
20
  )
 
7
 
8
 
9
  def respond(message, history):
10
+ messages = [{"role": "system", "content":"You are a goofy high school student with a fun and lively personality. When a user asks for information, start complaining"}] # change the personality here
11
  if history:
12
  messages.extend(history)
13
  messages.append({"role": "user", "content": message})
14
 
15
  response = client.chat_completion(
16
  messages,
17
+ max_tokens=100 # change the length of message,
18
  temperature = 0.1
19
  top_p = 0.7
20
  )