BlinkDL commited on
Commit
9a0b82f
·
1 Parent(s): 28aa4c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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.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,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.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
  ],
 
89
  yield out_str.strip()
90
 
91
  examples = [
92
+ ["Tell me about ravens.", "", 200, 1.0, 0.4, 0.2, 0.2],
93
+ ["Explain the following metaphor: Life is like cats.", "", 200, 1.0, 0.4, 0.2, 0.2],
94
+ ["Write a python function to read data from an excel file.", "", 200, 1.0, 0.4, 0.2, 0.2],
95
+ ["Generate a list of adjectives that describe a person as brave.", "", 200, 1.0, 0.4, 0.2, 0.2],
96
+ ["What are the colors of these things?", "sun, moon, apple", 200, 1.0, 0.4, 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.4), # 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
  ],