sharvanid commited on
Commit
94fdba0
·
verified ·
1 Parent(s): 5a01d4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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"]
@@ -20,9 +20,9 @@ def respond(message, history):
20
  messages.extend(history)
21
 
22
  response = client.chat_completion(
23
- messages, max_tokens=100
24
  )
25
-
26
 
27
  return response['choices'][0]['message']['content'].strip()
28
 
 
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"]
 
20
  messages.extend(history)
21
 
22
  response = client.chat_completion(
23
+ messages, max_tokens=100, temperature=1.3, top_p=.76
24
  )
25
+ #temperature and top_p control randomness
26
 
27
  return response['choices'][0]['message']['content'].strip()
28