Spaces:
Runtime error
Runtime error
changed __selectpage__ format
Browse files
module/__pycache__/__custom__.cpython-310.pyc
CHANGED
Binary files a/module/__pycache__/__custom__.cpython-310.pyc and b/module/__pycache__/__custom__.cpython-310.pyc differ
|
|
module/__pycache__/__selectpage__.cpython-310.pyc
CHANGED
Binary files a/module/__pycache__/__selectpage__.cpython-310.pyc and b/module/__pycache__/__selectpage__.cpython-310.pyc differ
|
|
module/__selectpage__.py
CHANGED
@@ -2,18 +2,18 @@ import streamlit as st
|
|
2 |
from streamlit_extras.switch_page_button import switch_page
|
3 |
import os
|
4 |
|
5 |
-
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
|
12 |
-
pages = [
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
]
|
17 |
|
18 |
def st_page_selectbox(current_page):
|
19 |
current_index = pages.index(current_page)
|
|
|
2 |
from streamlit_extras.switch_page_button import switch_page
|
3 |
import os
|
4 |
|
5 |
+
pages = ["Overall"]
|
6 |
|
7 |
+
files = os.listdir('.\pages')
|
8 |
+
for name in files:
|
9 |
+
name = name.split()[1].replace('.py', '').replace('_', ' ')
|
10 |
+
pages.append(name)
|
11 |
|
12 |
+
# pages = [
|
13 |
+
# "Overall",
|
14 |
+
# "Category", "Genre", "DLC Counts", "Price", "Age Restriction",
|
15 |
+
# "Settings", "OS", "Publisher", "Developer",
|
16 |
+
# ]
|
17 |
|
18 |
def st_page_selectbox(current_page):
|
19 |
current_index = pages.index(current_page)
|