khaerens commited on
Commit
f08e0a4
1 Parent(s): e3e3a86
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -61,6 +61,7 @@ def wiki_generate_graph():
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
 
 
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['nodes'] = list(set(st.session_state['nodes']))
65
  st.session_state['has_run_wiki'] = True
66
  st.success('Done!')
67