Spaces:
Build error
Build error
update
Browse files
app.py
CHANGED
@@ -180,7 +180,7 @@ def show_wiki_hub_page():
|
|
180 |
|
181 |
if st.session_state['has_run_wiki']:
|
182 |
|
183 |
-
components.html(st.session_state
|
184 |
num_buttons = len(st.session_state["nodes"])
|
185 |
num_cols = num_buttons if 0 < num_buttons < 7 else 7
|
186 |
columns = st.columns([1] * num_cols + [1])
|
@@ -206,10 +206,7 @@ def show_free_text_hub_page():
|
|
206 |
|
207 |
if st.session_state['has_run_free']:
|
208 |
print(st.session_state)
|
209 |
-
|
210 |
-
source_code = HtmlFile.read()
|
211 |
-
components.html(source_code, width=720, height=600)
|
212 |
-
os.remove(st.session_state["GRAPH_FILENAME"])
|
213 |
|
214 |
if st.session_state['input_method'] == "wikipedia":
|
215 |
wiki_init_state_variables()
|
|
|
180 |
|
181 |
if st.session_state['has_run_wiki']:
|
182 |
|
183 |
+
components.html(st.session_state["html"], width=720, height=600)
|
184 |
num_buttons = len(st.session_state["nodes"])
|
185 |
num_cols = num_buttons if 0 < num_buttons < 7 else 7
|
186 |
columns = st.columns([1] * num_cols + [1])
|
|
|
206 |
|
207 |
if st.session_state['has_run_free']:
|
208 |
print(st.session_state)
|
209 |
+
components.html(st.session_state["html"], width=720, height=600)
|
|
|
|
|
|
|
210 |
|
211 |
if st.session_state['input_method'] == "wikipedia":
|
212 |
wiki_init_state_variables()
|