UnarineLeo commited on
Commit
4e013ca
·
verified ·
1 Parent(s): 314e308

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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']