Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def apprendre(liste_actuelle):
|
|
| 75 |
|
| 76 |
# fonction pour prédire le mot suivant
|
| 77 |
def predict_next_word(start_text):
|
| 78 |
-
nb_words = max_sequence_len -
|
| 79 |
print("===> start_text=",start_text)
|
| 80 |
print(f"prédictions de {nb_words} mots.")
|
| 81 |
for _ in range(nb_words):
|
|
|
|
| 75 |
|
| 76 |
# fonction pour prédire le mot suivant
|
| 77 |
def predict_next_word(start_text):
|
| 78 |
+
nb_words = max_sequence_len - start_text.count(" ")
|
| 79 |
print("===> start_text=",start_text)
|
| 80 |
print(f"prédictions de {nb_words} mots.")
|
| 81 |
for _ in range(nb_words):
|