Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ with col2:
|
|
86 |
with st.container(border=True):
|
87 |
st.markdown("Output :bar_chart:")
|
88 |
if 'result' in locals() and result:
|
89 |
-
if result:
|
90 |
for sentence, predictions in result.items():
|
91 |
for prediction in predictions:
|
92 |
predicted_word = prediction['token_str']
|
|
|
86 |
with st.container(border=True):
|
87 |
st.markdown("Output :bar_chart:")
|
88 |
if 'result' in locals() and result:
|
89 |
+
if len(result) == 1:
|
90 |
for sentence, predictions in result.items():
|
91 |
for prediction in predictions:
|
92 |
predicted_word = prediction['token_str']
|