Spaces:
Build error
Build error
trigger pipeline
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from utils import clip_text
|
|
13 |
from datetime import datetime as dt
|
14 |
import os
|
15 |
|
16 |
-
GRAPH_FILENAME = str(dt.now().timestamp) + ".html"
|
17 |
|
18 |
wiki_state_variables = {
|
19 |
'has_run':False,
|
@@ -127,7 +127,7 @@ def show_wiki_hub_page():
|
|
127 |
|
128 |
if len(st.session_state['wiki_suggestions']) != 0:
|
129 |
num_buttons = len(st.session_state['wiki_suggestions'])
|
130 |
-
num_cols = num_buttons if num_buttons < 8 else 8
|
131 |
columns = st.columns([1] * num_cols )
|
132 |
for q in range(1 + num_buttons//num_cols):
|
133 |
for i, (c, s) in enumerate(zip(columns, st.session_state['wiki_suggestions'][q*num_cols: (q+1)*num_cols])):
|
@@ -158,7 +158,7 @@ def show_wiki_hub_page():
|
|
158 |
components.html(source_code, width=720, height=600)
|
159 |
|
160 |
num_buttons = len(st.session_state["nodes"])
|
161 |
-
num_cols = num_buttons if num_buttons < 7 else 7
|
162 |
columns = st.columns([1] * num_cols + [1])
|
163 |
print(st.session_state["nodes"])
|
164 |
|
|
|
13 |
from datetime import datetime as dt
|
14 |
import os
|
15 |
|
16 |
+
GRAPH_FILENAME = str(dt.now().timestamp()) + ".html"
|
17 |
|
18 |
wiki_state_variables = {
|
19 |
'has_run':False,
|
|
|
127 |
|
128 |
if len(st.session_state['wiki_suggestions']) != 0:
|
129 |
num_buttons = len(st.session_state['wiki_suggestions'])
|
130 |
+
num_cols = num_buttons if 0 < num_buttons < 8 else 8
|
131 |
columns = st.columns([1] * num_cols )
|
132 |
for q in range(1 + num_buttons//num_cols):
|
133 |
for i, (c, s) in enumerate(zip(columns, st.session_state['wiki_suggestions'][q*num_cols: (q+1)*num_cols])):
|
|
|
158 |
components.html(source_code, width=720, height=600)
|
159 |
|
160 |
num_buttons = len(st.session_state["nodes"])
|
161 |
+
num_cols = num_buttons if 0 < num_buttons < 7 else 7
|
162 |
columns = st.columns([1] * num_cols + [1])
|
163 |
print(st.session_state["nodes"])
|
164 |
|