OlivierDehaene
commited on
Commit
•
511ba7f
1
Parent(s):
e1419c7
remove token that are present in username
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def predict(
|
|
90 |
|
91 |
if i == 0:
|
92 |
history.append(" " + partial_words)
|
93 |
-
|
94 |
history[-1] = partial_words
|
95 |
|
96 |
chat = [
|
|
|
90 |
|
91 |
if i == 0:
|
92 |
history.append(" " + partial_words)
|
93 |
+
elif response.token.text not in user_name:
|
94 |
history[-1] = partial_words
|
95 |
|
96 |
chat = [
|