BlinkDL commited on
Commit
935041e
1 Parent(s): 29c4970

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -93,13 +93,13 @@ def evaluate(
93
  yield out_str.strip()
94
 
95
  examples = [
96
- ["Tell me about ravens.", "", 150, 1.2, 0.5, 0.4, 0.4],
97
- ["Write a python function to mine 1 BTC, with details and comments.", "", 150, 1.2, 0.5, 0.4, 0.4],
98
- ["Write a song about ravens.", "", 150, 1.2, 0.5, 0.4, 0.4],
99
- ["Explain the following metaphor: Life is like cats.", "", 150, 1.2, 0.5, 0.4, 0.4],
100
- ["Write a story using the following information", "A man named Alex chops a tree down", 150, 1.2, 0.5, 0.4, 0.4],
101
- ["Generate a list of adjectives that describe a person as brave.", "", 150, 1.2, 0.5, 0.4, 0.4],
102
- ["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.", "", 150, 1.2, 0.5, 0.4, 0.4],
103
  ]
104
 
105
  ##########################################################################
@@ -249,7 +249,7 @@ with gr.Blocks(title=title) as demo:
249
  with gr.Column():
250
  instruction = gr.Textbox(lines=2, label="Instruction", value="Tell me about ravens.")
251
  input = gr.Textbox(lines=2, label="Input", placeholder="none")
252
- token_count = gr.Slider(10, 200, label="Max Tokens", step=10, value=150)
253
  temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.2)
254
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.5)
255
  presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0.4)
 
93
  yield out_str.strip()
94
 
95
  examples = [
96
+ ["Tell me about ravens.", "", 300, 1.2, 0.5, 0.4, 0.4],
97
+ ["Write a python function to mine 1 BTC, with details and comments.", "", 300, 1.2, 0.5, 0.4, 0.4],
98
+ ["Write a song about ravens.", "", 300, 1.2, 0.5, 0.4, 0.4],
99
+ ["Explain the following metaphor: Life is like cats.", "", 300, 1.2, 0.5, 0.4, 0.4],
100
+ ["Write a story using the following information", "A man named Alex chops a tree down", 300, 1.2, 0.5, 0.4, 0.4],
101
+ ["Generate a list of adjectives that describe a person as brave.", "", 300, 1.2, 0.5, 0.4, 0.4],
102
+ ["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.", "", 300, 1.2, 0.5, 0.4, 0.4],
103
  ]
104
 
105
  ##########################################################################
 
249
  with gr.Column():
250
  instruction = gr.Textbox(lines=2, label="Instruction", value="Tell me about ravens.")
251
  input = gr.Textbox(lines=2, label="Input", placeholder="none")
252
+ token_count = gr.Slider(10, 300, label="Max Tokens", step=10, value=300)
253
  temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.2)
254
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.5)
255
  presence_penalty = gr.Slider(0.0, 1.0, label="Presence Penalty", step=0.1, value=0.4)