FredZhang7 commited on
Commit
7cc4c5c
1 Parent(s): 9c45526

change default params

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -112,16 +112,16 @@ def alternative(chatbot, history):
112
  with gr.Blocks(title=title) as demo:
113
  gr.HTML(f"<div style=\"text-align: center;\">\n<h1>🌍World - {title}</h1>\n</div>")
114
  with gr.Tab("Instruct mode"):
115
- gr.Markdown(f"100% RNN RWKV-LM **trained on 100+ world languages**. Demo limited to ctxlen {ctx_limit}. Finetuned on alpaca, gpt4all, codealpaca and more. For best results, ** keep you prompt short and clear **.")
116
  with gr.Row():
117
  with gr.Column():
118
  instruction = gr.Textbox(lines=2, label="Instruction", value='東京で訪れるべき素晴らしい場所とその紹介をいくつか挙げてください。')
119
  input = gr.Textbox(lines=2, label="Input", placeholder="")
120
  token_count = gr.Slider(10, 300, label="Max Tokens", step=10, value=300)
121
  temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.2)
122
- top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.5)
123
- presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0.5)
124
- count_penalty = gr.Slider(0.0, 1.0, label="Count Penalty", step=0.1, value=0.5)
125
  with gr.Column():
126
  with gr.Row():
127
  submit = gr.Button("Submit", variant="primary")
 
112
  with gr.Blocks(title=title) as demo:
113
  gr.HTML(f"<div style=\"text-align: center;\">\n<h1>🌍World - {title}</h1>\n</div>")
114
  with gr.Tab("Instruct mode"):
115
+ gr.Markdown(f"100% RNN RWKV-LM **trained on 100+ world languages**. Demo limited to ctxlen {ctx_limit}. Finetuned on alpaca, gpt4all, codealpaca and more. For best results, <b>keep your prompt short and clear</b>.")
116
  with gr.Row():
117
  with gr.Column():
118
  instruction = gr.Textbox(lines=2, label="Instruction", value='東京で訪れるべき素晴らしい場所とその紹介をいくつか挙げてください。')
119
  input = gr.Textbox(lines=2, label="Input", placeholder="")
120
  token_count = gr.Slider(10, 300, label="Max Tokens", step=10, value=300)
121
  temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.2)
122
+ top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.3)
123
+ presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0)
124
+ count_penalty = gr.Slider(0.0, 1.0, label="Count Penalty", step=0.1, value=0.7)
125
  with gr.Column():
126
  with gr.Row():
127
  submit = gr.Button("Submit", variant="primary")