maom's picture
Update app.py
4f75664 verified
raw
history blame
811 Bytes
import streamlit as st
from pathlib import Path
SECTIONS = {
"Identify dataset": "01_identify_dataset.md",
"Getting started with HuggingFace": "02_getting_started_hf.md",
"Create dataset": "03_create_dataset.md",
"Add README": "04_readme.md",
"Add metadata": "05_metadata.md",
"Versioning": "06_versioning.md",
"Practical recommendations": "07_practical_recommendations.md",
"FAQ": "08_faq.md",
}
st.set_page_config(
page_title="Molecular Dataset Curation Guide",
layout="wide"
)
st.sidebar.title("Dataset Curation Guide")
choice = st.sidebar.radio("Navigate", list(SECTIONS.keys()))
md_path = Path("sections") / SECTIONS[choice]
if md_path.exists():
st.markdown(md_path.read_text(), unsafe_allow_html=True)
else:
st.error(f"Missing section file: {md_path}")