jsminenguyen commited on
Commit
059ef33
·
verified ·
1 Parent(s): a92dec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,7 +3,7 @@ from huggingface_hub import InferenceClient
3
  import gradio as gr
4
  import random
5
 
6
- client=InferenceClient("HuggingFaceH4/zephyr-7b-beta")
7
 
8
  def respond(message, history):
9
  #responses = ["Yes", "No"]
@@ -19,8 +19,9 @@ def respond(message, history):
19
  messages.extend(history)
20
 
21
  response = client.chat_completion(
22
- messages, max_tokens=100
23
  )
 
24
 
25
  return response['choices'][0]['message']['content'].strip()
26
 
 
3
  import gradio as gr
4
  import random
5
 
6
+ client=InferenceClient("Qwen/Qwen2.5-72B-Instruct")
7
 
8
  def respond(message, history):
9
  #responses = ["Yes", "No"]
 
19
  messages.extend(history)
20
 
21
  response = client.chat_completion(
22
+ messages, max_tokens=100, temperature=1.3, top_p=.2
23
  )
24
+ #temperature and top_p control randomness
25
 
26
  return response['choices'][0]['message']['content'].strip()
27