BlinkDL commited on
Commit
2f0f296
·
1 Parent(s): 771e656

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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.5, 0.3, 0.3],
93
- ["Explain the following metaphor: Life is like cats.", "", 200, 1.0, 0.5, 0.3, 0.3],
94
- ["Write a python function to read data from an excel file.", "", 200, 1.0, 0.5, 0.3, 0.3],
95
- ["Generate a list of adjectives that describe a person as brave.", "", 200, 1.0, 0.5, 0.3, 0.3],
96
- ["What are the colors of these things?", "sun, moon, apple", 200, 1.0, 0.5, 0.3, 0.3],
97
  ]
98
 
99
  g = gr.Interface(
@@ -101,11 +101,11 @@ g = gr.Interface(
101
  inputs=[
102
  gr.components.Textbox(lines=2, label="Instruction", value="Tell me about ravens."),
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.5), # top_p
107
- gr.components.Slider(0.0, 1.0, step=0.1, value=0.3), # presencePenalty
108
- gr.components.Slider(0.0, 1.0, step=0.1, value=0.3), # countPenalty
109
  ],
110
  outputs=[
111
  gr.inputs.Textbox(
 
89
  yield out_str.strip()
90
 
91
  examples = [
92
+ ["Tell me about ravens.", "", 150, 1.0, 0.5, 0.4, 0.4],
93
+ ["Explain the following metaphor: Life is like cats.", "", 150, 1.0, 0.5, 0.4, 0.4],
94
+ ["Write a python function to read data from an excel file.", "", 150, 1.0, 0.5, 0.2, 0.2],
95
+ ["Generate a list of adjectives that describe a person as brave.", "", 150, 1.0, 0.5, 0.4, 0.4],
96
+ ["What are the colors of these things?", "sun, moon, apple", 150, 1.0, 0.5, 0.4, 0.4],
97
  ]
98
 
99
  g = gr.Interface(
 
101
  inputs=[
102
  gr.components.Textbox(lines=2, label="Instruction", value="Tell me about ravens."),
103
  gr.components.Textbox(lines=2, label="Input", placeholder="none"),
104
+ gr.components.Slider(minimum=10, maximum=200, step=10, value=150), # 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.5), # top_p
107
+ gr.components.Slider(0.0, 1.0, step=0.1, value=0.4), # presencePenalty
108
+ gr.components.Slider(0.0, 1.0, step=0.1, value=0.4), # countPenalty
109
  ],
110
  outputs=[
111
  gr.inputs.Textbox(