Akjava commited on
Commit
4bdf72f
·
verified ·
1 Parent(s): 9b25efe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def trans(text):
75
 
76
  # 生成
77
  buf = ""
78
- for token in llm.generate(initial_tokens, top_p=0.95, temp=0.0, repetition_penalty=1.0):
79
  decoded = llm.detokenize([token]).decode('utf-8', errors='ignore')
80
  buf += decoded
81
  if token == llm.token_eos():
 
75
 
76
  # 生成
77
  buf = ""
78
+ for token in llm.generate(initial_tokens, top_p=0.95, temp=0.0, repeat_penalty=1.0):
79
  decoded = llm.detokenize([token]).decode('utf-8', errors='ignore')
80
  buf += decoded
81
  if token == llm.token_eos():