Spaces:
Build error
Build error
change
Browse files
app.py
CHANGED
@@ -59,7 +59,8 @@ def wiki_generate_graph():
|
|
59 |
for n in nodes:
|
60 |
n = n.lower()
|
61 |
if n not in st.session_state['topics']:
|
62 |
-
|
|
|
63 |
st.session_state['has_run_wiki'] = True
|
64 |
st.success('Done!')
|
65 |
|
|
|
59 |
for n in nodes:
|
60 |
n = n.lower()
|
61 |
if n not in st.session_state['topics']:
|
62 |
+
possible_topics = wikipedia.search(n, results = 3)
|
63 |
+
st.session_state['nodes'].extend(possible_topics)
|
64 |
st.session_state['has_run_wiki'] = True
|
65 |
st.success('Done!')
|
66 |
|