Spaces:
Running
Running
Update app.py
Browse files
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:
|