BlinkDL commited on
Commit
d2d01b7
1 Parent(s): 2d1a42e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -86,8 +86,8 @@ def evaluate(
86
  examples = [
87
  [generate_prompt("Tell me about ravens."), 500, 1, 0.5, 0.4, 0.4],
88
  [generate_prompt("Write a python function to mine 1 BTC."), 500, 1, 0.5, 0.4, 0.4],
89
- [generate_prompt("Write a song about ravens.", "", 500, 1, 0.5, 0.4, 0.4],
90
- [generate_prompt("Write a story using the following information", "A man named Alex chops a tree down", 500, 1, 0.5, 0.4, 0.4],
91
  [generate_prompt("Generate a list of adjectives that describe a person as brave."), 500, 1, 0.5, 0.4, 0.4],
92
  [generate_prompt("You have $100, and your goal is to turn that into as much money as possible with AI and Machine Learning. Please respond with detailed plan."), 500, 1, 0.5, 0.4, 0.4],
93
  ]
@@ -97,11 +97,10 @@ examples = [
97
  with gr.Blocks(title=title) as demo:
98
  gr.HTML(f"<div style=\"text-align: center;\">\n<h1>RWKV-5 World v2 - {title}</h1>\n</div>")
99
  with gr.Tab("Instruct mode"):
100
- gr.Markdown(f"This is a 1.5B [RWKV-5 World v2](https://huggingface.co/BlinkDL/rwkv-5-world) 100% RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM). *** Please try examples first (bottom of page) *** (edit them to use your question). Demo limited to ctxlen {ctx_limit}. For best results, *** keep you prompt short and clear ***.")
101
  with gr.Row():
102
  with gr.Column():
103
- instruction = gr.Textbox(lines=2, label="Instruction", value="Tell me about ravens.")
104
- input = gr.Textbox(lines=2, label="Input", placeholder="none")
105
  token_count = gr.Slider(10, 500, label="Max Tokens", step=10, value=500)
106
  temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
107
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.5)
 
86
  examples = [
87
  [generate_prompt("Tell me about ravens."), 500, 1, 0.5, 0.4, 0.4],
88
  [generate_prompt("Write a python function to mine 1 BTC."), 500, 1, 0.5, 0.4, 0.4],
89
+ [generate_prompt("Write a song about ravens."), 500, 1, 0.5, 0.4, 0.4],
90
+ [generate_prompt("Write a story using the following information", "A man named Alex chops a tree down"), 500, 1, 0.5, 0.4, 0.4],
91
  [generate_prompt("Generate a list of adjectives that describe a person as brave."), 500, 1, 0.5, 0.4, 0.4],
92
  [generate_prompt("You have $100, and your goal is to turn that into as much money as possible with AI and Machine Learning. Please respond with detailed plan."), 500, 1, 0.5, 0.4, 0.4],
93
  ]
 
97
  with gr.Blocks(title=title) as demo:
98
  gr.HTML(f"<div style=\"text-align: center;\">\n<h1>RWKV-5 World v2 - {title}</h1>\n</div>")
99
  with gr.Tab("Instruct mode"):
100
+ gr.Markdown(f"This is a ***1.5B*** [RWKV-5 World v2](https://huggingface.co/BlinkDL/rwkv-5-world), which is 100% RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM) and attention-free. *** Please try examples first (bottom of page) *** (edit them to use your question). Demo limited to ctxlen {ctx_limit}. For best results, *** keep you prompt short and clear ***.")
101
  with gr.Row():
102
  with gr.Column():
103
+ instruction = gr.Textbox(lines=2, label="Prompt", value=generate_prompt("Tell me about ravens."))
 
104
  token_count = gr.Slider(10, 500, label="Max Tokens", step=10, value=500)
105
  temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
106
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.5)