BlinkDL commited on
Commit
28aa4c0
·
1 Parent(s): 0d8018b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -89,11 +89,11 @@ def evaluate(
89
  yield out_str.strip()
90
 
91
  examples = [
92
- ["Tell me about ravens.", "", 200, 1.0, 0.7, 0.2, 0.2],
93
- ["Explain the following metaphor: Life is like cats.", "", 200, 1.0, 0.7, 0.2, 0.2],
94
- ["Write a python function to read data from an excel file.", "", 200, 1.0, 0.7, 0.2, 0.2],
95
- ["Generate a list of adjectives that describe a person as brave.", "", 200, 1.0, 0.7, 0.2, 0.2],
96
- ["Arrange the given numbers in ascending order.", "2, 4, 0, 8, 3", 200, 1.0, 0.7, 0.2, 0.2],
97
  ]
98
 
99
  g = gr.Interface(
@@ -103,7 +103,7 @@ g = gr.Interface(
103
  gr.components.Textbox(lines=2, label="Input", placeholder="none"),
104
  gr.components.Slider(minimum=10, maximum=250, step=10, value=200), # token_count
105
  gr.components.Slider(minimum=0.2, maximum=2.0, step=0.1, value=1.0), # temperature
106
- gr.components.Slider(minimum=0, maximum=1, step=0.05, value=0.7), # top_p
107
  gr.components.Slider(0.0, 1.0, step=0.1, value=0.2), # presencePenalty
108
  gr.components.Slider(0.0, 1.0, step=0.1, value=0.2), # countPenalty
109
  ],
@@ -114,7 +114,7 @@ g = gr.Interface(
114
  )
115
  ],
116
  title=f"🐦Raven {title}",
117
- description="Raven is [RWKV 7B](https://github.com/BlinkDL/ChatRWKV) finetuned to follow instructions. It is trained on the [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca) dataset and more.",
118
  examples=examples,
119
  cache_examples=False,
120
  )
 
89
  yield out_str.strip()
90
 
91
  examples = [
92
+ ["Tell me about ravens.", "", 200, 1.0, 0.6, 0.2, 0.2],
93
+ ["Explain the following metaphor: Life is like cats.", "", 200, 1.0, 0.6, 0.2, 0.2],
94
+ ["Write a python function to read data from an excel file.", "", 200, 1.0, 0.6, 0.2, 0.2],
95
+ ["Generate a list of adjectives that describe a person as brave.", "", 200, 1.0, 0.6, 0.2, 0.2],
96
+ ["What are the colors of these things?", "sun, moon, apple", 200, 1.0, 0.6, 0.2, 0.2],
97
  ]
98
 
99
  g = gr.Interface(
 
103
  gr.components.Textbox(lines=2, label="Input", placeholder="none"),
104
  gr.components.Slider(minimum=10, maximum=250, step=10, value=200), # token_count
105
  gr.components.Slider(minimum=0.2, maximum=2.0, step=0.1, value=1.0), # temperature
106
+ gr.components.Slider(minimum=0, maximum=1, step=0.05, value=0.6), # top_p
107
  gr.components.Slider(0.0, 1.0, step=0.1, value=0.2), # presencePenalty
108
  gr.components.Slider(0.0, 1.0, step=0.1, value=0.2), # countPenalty
109
  ],
 
114
  )
115
  ],
116
  title=f"🐦Raven {title}",
117
+ description="Raven is [RWKV 7B](https://github.com/BlinkDL/ChatRWKV) finetuned to follow instructions. *** Please try examples first (bottom of page) *** (edit them to use your question). Demo limited to ctxlen 1024. It is trained on the [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca) dataset and more.",
118
  examples=examples,
119
  cache_examples=False,
120
  )