yentinglin commited on
Commit
9b61b41
1 Parent(s): ec98626

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -119,14 +119,14 @@ with gr.Blocks() as demo:
119
  minimum=0.1,
120
  maximum=1.0,
121
  step=0.1,
122
- value=0.7,
123
  )
124
  top_p = gr.Slider(
125
  label='Top-p (nucleus sampling)',
126
  minimum=0.05,
127
  maximum=1.0,
128
  step=0.05,
129
- value=0.9,
130
  )
131
  top_k = gr.Slider(
132
  label='Top-k',
@@ -160,6 +160,7 @@ with gr.Blocks() as demo:
160
  temperature=temperature,
161
  top_p=top_p,
162
  top_k=top_k,
 
163
  ):
164
  if not response.token.special:
165
  character = response.token.text
 
119
  minimum=0.1,
120
  maximum=1.0,
121
  step=0.1,
122
+ value=0.3,
123
  )
124
  top_p = gr.Slider(
125
  label='Top-p (nucleus sampling)',
126
  minimum=0.05,
127
  maximum=1.0,
128
  step=0.05,
129
+ value=0.95,
130
  )
131
  top_k = gr.Slider(
132
  label='Top-k',
 
160
  temperature=temperature,
161
  top_p=top_p,
162
  top_k=top_k,
163
+ repetition_penalty=1.1,
164
  ):
165
  if not response.token.special:
166
  character = response.token.text