Update app.py
Browse files
app.py
CHANGED
@@ -139,7 +139,7 @@ with col2:
|
|
139 |
""", unsafe_allow_html=True)
|
140 |
|
141 |
else:
|
142 |
-
for language,
|
143 |
if predictions:
|
144 |
top_prediction = predictions[0]
|
145 |
predicted_word = top_prediction['token_str']
|
|
|
139 |
""", unsafe_allow_html=True)
|
140 |
|
141 |
else:
|
142 |
+
for key,(predictions, language, sentence) in result.items():
|
143 |
if predictions:
|
144 |
top_prediction = predictions[0]
|
145 |
predicted_word = top_prediction['token_str']
|