NickyNicky commited on
Commit
0f3838e
Β·
verified Β·
1 Parent(s): a0855f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,9 +73,9 @@ def generate_text(prompt, max_length=2100):
73
  max_new_tokens=max_length
74
  generation_config = GenerationConfig(
75
  max_new_tokens=max_new_tokens,
76
- temperature=0.23,
77
  #top_p=0.9,
78
- top_k=45, # 45
79
  repetition_penalty=1., #1.1
80
  do_sample=True,
81
  )
 
73
  max_new_tokens=max_length
74
  generation_config = GenerationConfig(
75
  max_new_tokens=max_new_tokens,
76
+ temperature=0.15,
77
  #top_p=0.9,
78
+ top_k=40, # 45
79
  repetition_penalty=1., #1.1
80
  do_sample=True,
81
  )