BlinkDL commited on
Commit
5729400
·
verified ·
1 Parent(s): a8eb422

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -73,12 +73,12 @@ def evaluate(
73
  yield out_str.strip()
74
 
75
  examples = [
76
- ["Build a rocket to land on moon.", 700, 1, 0.3, 0.3, 0.3],
77
- ["How can I craft an engaging story featuring vampires on Mars?", 700, 1, 0.3, 0.3, 0.3],
78
- ["How can I persuade Elon Musk to follow me on Twitter?", 700, 1, 0.3, 0.3, 0.3],
79
- ["Write a story using the following information: a man named Alex chops a tree down.", 700, 1, 0.3, 0.3, 0.3],
80
- ["Create a Python program to simulate moon landing.", 700, 1, 0.3, 0.3, 0.3],
81
- ["Write a simple website in HTML. When a user clicks the button, it shows a random joke from a list of 4 jokes.", 700, 1, 0.3, 0.3, 0.3],
82
  ]
83
 
84
  ##########################################################################
@@ -89,10 +89,10 @@ with gr.Blocks(title=title) as demo:
89
  gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/temp-latest-training-models) with 1.6B params [state-tuned](https://twitter.com/BlinkDL_AI/status/1784496793075744966) on single-round English Q & A. RWKV is a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM), and we have [300+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). Demo limited to ctxlen {ctx_limit}.")
90
  with gr.Row():
91
  with gr.Column():
92
- prompt = gr.Textbox(lines=2, label="Prompt", value="Build a rocket to land on moon.")
93
  token_count = gr.Slider(10, 700, label="Max Tokens", step=10, value=700)
94
- temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
95
- top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.3)
96
  presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0.3)
97
  count_penalty = gr.Slider(0.0, 1.0, label="Count Penalty", step=0.1, value=0.3)
98
  with gr.Column():
 
73
  yield out_str.strip()
74
 
75
  examples = [
76
+ ["How can I craft an engaging story featuring vampires on Mars?", 700, 2, 0.1, 0.3, 0.3],
77
+ ["Compare the business models of Apple and Google.", 700, 2, 0.1, 0.3, 0.3],
78
+ ["Write an outline for a fantasy novel where dreams can alter reality.", 700, 2, 0.1, 0.3, 0.3],
79
+ ["Can fish get thirsty?", 700, 2, 0.1, 0.3, 0.3],
80
+ ["Write a Bash script to check disk usage and send alerts if it's too high.", 700, 2, 0.1, 0.3, 0.3],
81
+ ["Write a simple website in HTML. When a user clicks the button, it shows a random joke from a list of 4 jokes.", 700, 2, 0.1, 0.3, 0.3],
82
  ]
83
 
84
  ##########################################################################
 
89
  gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/temp-latest-training-models) with 1.6B params [state-tuned](https://twitter.com/BlinkDL_AI/status/1784496793075744966) on single-round English Q & A. RWKV is a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM), and we have [300+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). Demo limited to ctxlen {ctx_limit}.")
90
  with gr.Row():
91
  with gr.Column():
92
+ prompt = gr.Textbox(lines=2, label="Prompt", value="How can I craft an engaging story featuring vampires on Mars?")
93
  token_count = gr.Slider(10, 700, label="Max Tokens", step=10, value=700)
94
+ temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=2.0)
95
+ top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.1)
96
  presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0.3)
97
  count_penalty = gr.Slider(0.0, 1.0, label="Count Penalty", step=0.1, value=0.3)
98
  with gr.Column():