BlinkDL commited on
Commit
3482f79
1 Parent(s): e962dad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -73,13 +73,13 @@ def evaluate(
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
- ["In JSON format, list the top 5 tourist attractions in Paris.", 700, 2, 0.1, 0.3, 0.3],
79
- ["Write an outline for a fantasy novel where dreams can alter reality.", 700, 2, 0.1, 0.3, 0.3],
80
- ["Can fish get thirsty?", 700, 2, 0.1, 0.3, 0.3],
81
- ["Write a Bash script to check disk usage and send alerts if it's too high.", 700, 2, 0.1, 0.3, 0.3],
82
- ["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],
83
  ]
84
 
85
  ##########################################################################
@@ -87,13 +87,13 @@ examples = [
87
  with gr.Blocks(title=title) as demo:
88
  gr.HTML(f"<div style=\"text-align: center;\">\n<h1>{title}</h1>\n</div>")
89
  with gr.Tab("Raw Generation"):
90
- 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}.")
91
  with gr.Row():
92
  with gr.Column():
93
  prompt = gr.Textbox(lines=2, label="Prompt", value="How can I craft an engaging story featuring vampires on Mars?")
94
  token_count = gr.Slider(10, 700, label="Max Tokens", step=10, value=700)
95
- temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=2.0)
96
- top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.1)
97
  presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0.3)
98
  count_penalty = gr.Slider(0.0, 1.0, label="Count Penalty", step=0.1, value=0.3)
99
  with gr.Column():
 
73
  yield out_str.strip()
74
 
75
  examples = [
76
+ ["How can I craft an engaging story featuring vampires on Mars?", 700, 1, 0.2, 0.3, 0.3],
77
+ ["Compare the business models of Apple and Google.", 700, 1, 0.2, 0.3, 0.3],
78
+ ["In JSON format, list the top 5 tourist attractions in Paris.", 700, 1, 0.2, 0.3, 0.3],
79
+ ["Write an outline for a fantasy novel where dreams can alter reality.", 700, 1, 0.2, 0.3, 0.3],
80
+ ["Can fish get thirsty?", 700, 1, 0.2, 0.3, 0.3],
81
+ ["Write a Bash script to check disk usage and send alerts if it's too high.", 700, 1, 0.2, 0.3, 0.3],
82
+ ["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.2, 0.3, 0.3],
83
  ]
84
 
85
  ##########################################################################
 
87
  with gr.Blocks(title=title) as demo:
88
  gr.HTML(f"<div style=\"text-align: center;\">\n<h1>{title}</h1>\n</div>")
89
  with gr.Tab("Raw Generation"):
90
+ gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/temp-latest-training-models) [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}.")
91
  with gr.Row():
92
  with gr.Column():
93
  prompt = gr.Textbox(lines=2, label="Prompt", value="How can I craft an engaging story featuring vampires on Mars?")
94
  token_count = gr.Slider(10, 700, label="Max Tokens", step=10, value=700)
95
+ temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
96
+ top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.2)
97
  presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0.3)
98
  count_penalty = gr.Slider(0.0, 1.0, label="Count Penalty", step=0.1, value=0.3)
99
  with gr.Column():