hfl-rc commited on
Commit
d4a0c70
1 Parent(s): 960904c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -14,12 +14,12 @@ BANNER_HTML = """
14
  </p>
15
  <h3>
16
  <center>Check our
17
- <a href='https://github.com/ymcui/Chinese-LLaMA-Alpaca-3' target='_blank'>Chinese-LLaMA-Alpaca-3 GitHub Project</a>
18
  for more information.
19
  </center>
20
  </h3>
21
  <p>
22
- <center><em>The demo is mainly for academic purposes and users are not expected to use this demo for illegal activities.</em></center>
23
  </p>
24
  """
25
 
@@ -86,8 +86,8 @@ with gr.Blocks() as demo:
86
  additional_inputs=[
87
  gr.Text(value=DEFAULT_SYSTEM_PROMPT, label="System Prompt / 系统提示词", render=False),
88
  gr.Radio(choices=["v1", "v2", "v3"], label="Model Version / 模型版本", value="v3", interactive=False, render=False),
89
- gr.Slider(minimum=0, maximum=1, step=0.1, value=0.5, label="Temperature / 温度系数", render=False),
90
- gr.Slider(minimum=512, maximum=2048, step=1, value=256, label="Max new tokens / 最大生成长度", render=False),
91
  ],
92
  cache_examples=False,
93
  )
 
14
  </p>
15
  <h3>
16
  <center>Check our
17
+ <a href='https://github.com/ymcui/Chinese-LLaMA-Alpaca-3' target='_blank'>Chinese-LLaMA-Alpaca-3 GitHub Project <img src="https://img.shields.io/github/stars/ymcui/chinese-llama-alpaca-3.svg?style=social&label=Star></a>
18
  for more information.
19
  </center>
20
  </h3>
21
  <p>
22
+ <center><em>The demo is mainly for academic purposes. Illegal usages are prohibited. Default model: <a href="https://huggingface.co/hfl/llama-3-chinese-8b-instruct-v3">hfl/llama-3-chinese-8b-instruct-v3</a></em></center>
23
  </p>
24
  """
25
 
 
86
  additional_inputs=[
87
  gr.Text(value=DEFAULT_SYSTEM_PROMPT, label="System Prompt / 系统提示词", render=False),
88
  gr.Radio(choices=["v1", "v2", "v3"], label="Model Version / 模型版本", value="v3", interactive=False, render=False),
89
+ gr.Slider(minimum=0, maximum=1.5, step=0.1, value=0.6, label="Temperature / 温度系数", render=False),
90
+ gr.Slider(minimum=128, maximum=2048, step=1, value=512, label="Max new tokens / 最大生成长度", render=False),
91
  ],
92
  cache_examples=False,
93
  )