twigs commited on
Commit
241fc6e
1 Parent(s): 8c6ed30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -120,8 +120,12 @@ def main():
120
 
121
  with c1:
122
  st.markdown("#### Words identified as complex")
123
- for w in words:
124
- st.markdown(f"* {w}")
 
 
 
 
125
 
126
  with c2:
127
  st.markdown(f"#### Original Sentence:\n > {input_sentence}")
 
120
 
121
  with c1:
122
  st.markdown("#### Words identified as complex")
123
+ if words:
124
+ for w in words:
125
+ st.markdown(f"* {w}")
126
+
127
+ else:
128
+ st.markdown("None :smile:")
129
 
130
  with c2:
131
  st.markdown(f"#### Original Sentence:\n > {input_sentence}")