Alexandr "MrSteyk" German
commited on
Commit
•
fb9114d
1
Parent(s):
977d0b0
AAAA
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def complete_fn(inpt, max_tokens, min_tokens, alpha_f, alpha_p):
|
|
35 |
for i in range(len(tokens) - 1):
|
36 |
model.forward_token_preproc(tokens[i], state)
|
37 |
yield (tokenizer.decode(tokens[:i + 1]), None)
|
38 |
-
logits = model.forward_token(tokens[
|
39 |
yield (text, None)
|
40 |
max_tokens = int(max_tokens)
|
41 |
for i in range(max_tokens):
|
|
|
35 |
for i in range(len(tokens) - 1):
|
36 |
model.forward_token_preproc(tokens[i], state)
|
37 |
yield (tokenizer.decode(tokens[:i + 1]), None)
|
38 |
+
logits = model.forward_token(tokens[-1], state)
|
39 |
yield (text, None)
|
40 |
max_tokens = int(max_tokens)
|
41 |
for i in range(max_tokens):
|