khaerens commited on
Commit
1fcc193
·
1 Parent(s): 3f12fd1
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def wiki_show_suggestion():
70
  with st.spinner(text="fetching wiki topics..."):
71
  if st.session_state['input_method'] == "wikipedia":
72
  text = st.session_state.text
73
- if text is not None and text is not "":
74
  subjects = text.split(",")[:5]
75
  for subj in subjects:
76
  st.session_state['wiki_suggestions'] += wikipedia.search(subj, results = 3)
 
70
  with st.spinner(text="fetching wiki topics..."):
71
  if st.session_state['input_method'] == "wikipedia":
72
  text = st.session_state.text
73
+ if (text is not None) and (text is not ""):
74
  subjects = text.split(",")[:5]
75
  for subj in subjects:
76
  st.session_state['wiki_suggestions'] += wikipedia.search(subj, results = 3)