Spaces:
Runtime error
Runtime error
OlivierDehaene
commited on
Commit
•
6d82338
1
Parent(s):
a857304
strip partial words
Browse files
app.py
CHANGED
@@ -72,6 +72,8 @@ def predict(
|
|
72 |
if partial_words.endswith(assistant_name.rstrip()):
|
73 |
partial_words = partial_words.rstrip(assistant_name.rstrip())
|
74 |
|
|
|
|
|
75 |
if i == 0:
|
76 |
history.append(" " + partial_words)
|
77 |
else:
|
|
|
72 |
if partial_words.endswith(assistant_name.rstrip()):
|
73 |
partial_words = partial_words.rstrip(assistant_name.rstrip())
|
74 |
|
75 |
+
partial_words = partial_words.strip()
|
76 |
+
|
77 |
if i == 0:
|
78 |
history.append(" " + partial_words)
|
79 |
else:
|