BlinkDL commited on
Commit
3cfe4db
1 Parent(s): ab56f98

Update app.py

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