khaerens commited on
Commit
e3e3a86
·
1 Parent(s): 65a0b31
Files changed (1) hide show
  1. app.py +2 -1
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
- st.session_state['nodes'].append(n)
 
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