greyfoss commited on
Commit
a6ae6ff
·
verified ·
1 Parent(s): 011372b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -113,7 +113,7 @@ def gradio(model, tokenizer):
113
  0.1,
114
  2.0,
115
  label="repetition_penalty",
116
- value=1.2,+
117
  info="Discourage the model from generating repetitive tokens in a sequence.",
118
  )
119
  no_repeat_ngram_size = gr.Slider(
@@ -141,8 +141,8 @@ def gradio(model, tokenizer):
141
  clear_btn = "➕ New conversation",
142
  examples=[
143
  ["帮我生成一个句子,描述春天的美好。", 30, 0.9, 0.95, 1.2, 5],
144
- ["给我讲一个消耗。", 50, 0.8, 0.9, 1.3, 6],
145
- ["生成一句英文名言。", 100, 0.9, 1.0, 1, 5]
146
  ]
147
  )
148
 
 
113
  0.1,
114
  2.0,
115
  label="repetition_penalty",
116
+ value=1.2,
117
  info="Discourage the model from generating repetitive tokens in a sequence.",
118
  )
119
  no_repeat_ngram_size = gr.Slider(
 
141
  clear_btn = "➕ New conversation",
142
  examples=[
143
  ["帮我生成一个句子,描述春天的美好。", 30, 0.9, 0.95, 1.2, 5],
144
+ ["给我讲一个笑话。", 50, 0.8, 0.9, 1.3, 6],
145
+ ["Give me some chinese names.", 100, 0.9, 1.0, 1, 5]
146
  ]
147
  )
148