Spaces:
Sleeping
Sleeping
Commit
·
2cc37c4
1
Parent(s):
cc6a446
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,10 @@ def complete(prompt, stop=["User", "Assistant"]):
|
|
41 |
result = llm.detokenize(token)
|
42 |
print("detokens")
|
43 |
output += result
|
|
|
44 |
for word in stop:
|
45 |
if word in output:
|
|
|
46 |
return output, token_count
|
47 |
|
48 |
return output, token_count
|
|
|
41 |
result = llm.detokenize(token)
|
42 |
print("detokens")
|
43 |
output += result
|
44 |
+
print(output)
|
45 |
for word in stop:
|
46 |
if word in output:
|
47 |
+
print(output, " | ", token_count)
|
48 |
return output, token_count
|
49 |
|
50 |
return output, token_count
|