AsirAsir commited on
Commit
60c53c9
1 Parent(s): 2d6c1f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -162,9 +162,9 @@ with gr.Blocks(theme="soft") as demo:
162
  with gr.Column(scale=1):
163
  top_k = gr.Slider(1, 10, value=5, step=1, label="top_k")
164
  top_p = gr.Slider(0, 1, value=0.8, step=0.1, label="top_p")
165
- temperature = gr.Slider(0.1, 2.0, value=0.3, step=0.1, label="temperature")
166
- repetition_penalty = gr.Slider(0.1, 2.0, value=1.1, step=0.1, label="repetition_penalty")
167
- max_dec_len = gr.Slider(1, 4096, value=1024, step=1, label="max_dec_len")
168
  with gr.Row():
169
  system_message = gr.Textbox(label="System Message", placeholder="Input your system message", value="你是由哔哩哔哩自主研发的大语言模型,名为“Index”。你能够根据用户传入的信息,帮助用户完成指定的任务,并生成恰当的、符合要求的回复。")
170
  with gr.Column(scale=10):
@@ -183,4 +183,4 @@ with gr.Blocks(theme="soft") as demo:
183
  clear.click(clear_history, inputs=[], outputs=[chatbot])
184
  reverse.click(reverse_last_round, inputs=[chatbot], outputs=[chatbot])
185
 
186
- demo.queue().launch()
 
162
  with gr.Column(scale=1):
163
  top_k = gr.Slider(1, 10, value=5, step=1, label="top_k")
164
  top_p = gr.Slider(0, 1, value=0.8, step=0.1, label="top_p")
165
+ temperature = gr.Slider(0.1, 2.0, value=0.3, step=0.1, label="temp")
166
+ repetition_penalty = gr.Slider(0.1, 2.0, value=1.1, step=0.1, label="repp")
167
+ max_dec_len = gr.Slider(1, 4096, value=1024, step=1, label="max_new")
168
  with gr.Row():
169
  system_message = gr.Textbox(label="System Message", placeholder="Input your system message", value="你是由哔哩哔哩自主研发的大语言模型,名为“Index”。你能够根据用户传入的信息,帮助用户完成指定的任务,并生成恰当的、符合要求的回复。")
170
  with gr.Column(scale=10):
 
183
  clear.click(clear_history, inputs=[], outputs=[chatbot])
184
  reverse.click(reverse_last_round, inputs=[chatbot], outputs=[chatbot])
185
 
186
+ demo.queue().launch()