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