m96tkmok commited on
Commit
6887531
·
verified ·
1 Parent(s): c4ab49c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN", None)
11
 
12
 
13
  ### Model used changes from HuggingFaceH4/zephyr-7b-beta to meta-llama/Llama-3.2-3B-Instruct
14
- client = InferenceClient("lianghsun/Llama-3.2-Taiwan-3B", timeout=30, token=HF_TOKEN)
15
 
16
 
17
  def respond(
@@ -53,7 +53,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
53
  demo = gr.ChatInterface(
54
  respond,
55
  additional_inputs=[
56
- gr.Textbox(value="你是一個產自台灣的聊天機械人, 你以台灣本地人的身份, 使用正體中文回答問題.", label="System message"),
57
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
58
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
59
  gr.Slider(
 
11
 
12
 
13
  ### Model used changes from HuggingFaceH4/zephyr-7b-beta to meta-llama/Llama-3.2-3B-Instruct
14
+ client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct", timeout=30, token=HF_TOKEN)
15
 
16
 
17
  def respond(
 
53
  demo = gr.ChatInterface(
54
  respond,
55
  additional_inputs=[
56
+ gr.Textbox(value="你是一個說中文的聊天機械人, 使用正體中文回答問題..", label="System message"),
57
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
58
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
59
  gr.Slider(