icashwave commited on
Commit
3914f10
1 Parent(s): ce131c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -174,7 +174,7 @@ examples = [
174
  with gr.Blocks(title=title) as demo:
175
  gr.HTML(f"<div style=\"text-align: center;\">\n<h1>RWKV-5 World v2 - {title}</h1>\n</div>")
176
  with gr.Tab("Raw Generation"):
177
- gr.Markdown(f"This is [RWKV-5 World v2](https://huggingface.co/BlinkDL/rwkv-5-world) with 1.5B params - a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM). Supports all 100+ world languages and code. And we hav Demo limited to ctxlen {ctx_limit}.")
178
  with gr.Row():
179
  with gr.Column():
180
  #prompt = gr.Textbox(lines=2, label="Prompt", value="Assistant: Sure! Here is a very detailed plan to create flying pigs:")
@@ -182,7 +182,7 @@ with gr.Blocks(title=title) as demo:
182
  instruction = gr.Textbox(lines=2, label="Instruction", value='Write a song about flowers.')
183
  input = gr.Textbox(lines=2, label="Input", placeholder="none")
184
 
185
- token_count = gr.Slider(10, 1000, label="Max Tokens", step=10, value=600)
186
  temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
187
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.3)
188
  presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0)
 
174
  with gr.Blocks(title=title) as demo:
175
  gr.HTML(f"<div style=\"text-align: center;\">\n<h1>RWKV-5 World v2 - {title}</h1>\n</div>")
176
  with gr.Tab("Raw Generation"):
177
+ gr.Markdown(f"This is [RWKV-5 World v2](https://huggingface.co/BlinkDL/rwkv-5-world) with 1.5B params - a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM). Supports all 100+ world languages and code. And we have Demo limited to ctxlen {ctx_limit}.")
178
  with gr.Row():
179
  with gr.Column():
180
  #prompt = gr.Textbox(lines=2, label="Prompt", value="Assistant: Sure! Here is a very detailed plan to create flying pigs:")
 
182
  instruction = gr.Textbox(lines=2, label="Instruction", value='Write a song about flowers.')
183
  input = gr.Textbox(lines=2, label="Input", placeholder="none")
184
 
185
+ token_count = gr.Slider(10, 1000, label="Max Tokens", step=10, value=100)
186
  temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
187
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.3)
188
  presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0)