khaerens commited on
Commit
36f8ff0
1 Parent(s): 837b4d7

final change

Browse files
__pycache__/rebel.cpython-38.pyc CHANGED
Binary files a/__pycache__/rebel.cpython-38.pyc and b/__pycache__/rebel.cpython-38.pyc differ
 
__pycache__/utils.cpython-38.pyc CHANGED
Binary files a/__pycache__/utils.cpython-38.pyc and b/__pycache__/utils.cpython-38.pyc differ
 
app.py CHANGED
@@ -30,7 +30,7 @@ free_text_state_variables = {
30
 
31
  }
32
 
33
- BUTTON_COLUMS = 5
34
 
35
  def wiki_init_state_variables():
36
  for k in free_text_state_variables.keys():
@@ -71,7 +71,7 @@ def wiki_show_suggestion():
71
  with st.spinner(text="fetching wiki topics..."):
72
  if st.session_state['input_method'] == "wikipedia":
73
  text = st.session_state.text
74
- if (text is not None) and (text is not ""):
75
  subjects = text.split(",")[:MAX_TOPICS]
76
  for subj in subjects:
77
  st.session_state['wiki_suggestions'] += wikipedia.search(subj, results = 3)
@@ -161,13 +161,13 @@ def show_wiki_hub_page():
161
  """
162
  ## How To Create a Graph:
163
  - Enter wikipedia search terms, separated by comma's
164
- - Choose one or more of the suggested topics (max. 5)
165
  - Click generate!
166
  """
167
  )
168
  cols = st.columns([8, 1])
169
  with cols[0]:
170
- st.text_input("wikipedia search term", on_change=wiki_show_suggestion, key="text", value="the wiki rabbit hole")
171
  with cols[1]:
172
  st.text('')
173
  st.text('')
 
30
 
31
  }
32
 
33
+ BUTTON_COLUMS = 4
34
 
35
  def wiki_init_state_variables():
36
  for k in free_text_state_variables.keys():
 
71
  with st.spinner(text="fetching wiki topics..."):
72
  if st.session_state['input_method'] == "wikipedia":
73
  text = st.session_state.text
74
+ if (text is not None) and (text != ""):
75
  subjects = text.split(",")[:MAX_TOPICS]
76
  for subj in subjects:
77
  st.session_state['wiki_suggestions'] += wikipedia.search(subj, results = 3)
 
161
  """
162
  ## How To Create a Graph:
163
  - Enter wikipedia search terms, separated by comma's
164
+ - Choose one or more of the suggested topics (max. 3)
165
  - Click generate!
166
  """
167
  )
168
  cols = st.columns([8, 1])
169
  with cols[0]:
170
+ st.text_input("wikipedia search term", on_change=wiki_show_suggestion, key="text", placeholder="graphs, are, awesome")
171
  with cols[1]:
172
  st.text('')
173
  st.text('')