BlinkDL commited on
Commit
f0fb04d
1 Parent(s): 8612056

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -189,7 +189,8 @@ def chat(
189
  if token == 0:
190
  next_tokens = pipeline.encode('\n\n')
191
  all_tokens += next_tokens
192
-
 
193
  if token not in occurrence:
194
  occurrence[token] = 1
195
  else:
 
189
  if token == 0:
190
  next_tokens = pipeline.encode('\n\n')
191
  all_tokens += next_tokens
192
+ for xxx in occurrence:
193
+ occurrence[xxx] *= 0.996
194
  if token not in occurrence:
195
  occurrence[token] = 1
196
  else: