Spaces:
Build error
Build error
change
Browse files
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)
|