maahikachitagi commited on
Commit
41ce0fe
·
verified ·
1 Parent(s): 4210e9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,13 +5,13 @@ from huggingface_hub import InferenceClient
5
 
6
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta") #change the LLM
7
  def respond(message, history):
8
- messages = [{"role": "system", "content": "You are a mean chatbot who has no life."}]
9
  if history:
10
  messages.extend(history)
11
  messages.append({"role":"user", "content": message})
12
  response = client.chat_completion(
13
  messages,
14
- max_tokens = 1, #change the length
15
  temperature = 0.5,
16
  top_p = 0.7
17
  )
 
5
 
6
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta") #change the LLM
7
  def respond(message, history):
8
+ messages = [{"role": "system", "content": "You are a professional interviewer."}]
9
  if history:
10
  messages.extend(history)
11
  messages.append({"role":"user", "content": message})
12
  response = client.chat_completion(
13
  messages,
14
+ max_tokens = 50, #change the length
15
  temperature = 0.5,
16
  top_p = 0.7
17
  )