Spaces:
Runtime error
Runtime error
Changed posts from md files to py files
Browse files
app.py
CHANGED
|
@@ -28,24 +28,24 @@ def render_page(post_path: Path):
|
|
| 28 |
|
| 29 |
|
| 30 |
def get_page_data(post_path: Path):
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
|
| 40 |
def main():
|
| 41 |
st.set_page_config(layout="wide")
|
| 42 |
-
posts = ['posts
|
| 43 |
-
'posts
|
| 44 |
-
'posts
|
| 45 |
-
'posts
|
| 46 |
-
'posts
|
| 47 |
]
|
| 48 |
-
page_to_show =
|
| 49 |
with st.sidebar:
|
| 50 |
|
| 51 |
st.markdown('''
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
def get_page_data(post_path: Path):
|
| 31 |
+
mod = importlib.import_module(str(post_path))
|
| 32 |
+
return {
|
| 33 |
+
"title": mod.title,
|
| 34 |
+
"description": mod.description,
|
| 35 |
+
"date": mod.date,
|
| 36 |
+
"thumbnail": mod.thumbnail,
|
| 37 |
+
}
|
| 38 |
|
| 39 |
|
| 40 |
def main():
|
| 41 |
st.set_page_config(layout="wide")
|
| 42 |
+
posts = ['posts.welcome',
|
| 43 |
+
'posts.context',
|
| 44 |
+
'posts.dataset_exploration',
|
| 45 |
+
'posts.model_exploration',
|
| 46 |
+
'posts.conclusion'
|
| 47 |
]
|
| 48 |
+
page_to_show = posts[0]
|
| 49 |
with st.sidebar:
|
| 50 |
|
| 51 |
st.markdown('''
|