import streamlit as st
st.set_page_config(
page_title="HantaLytics",
page_icon="๐งฌ",
layout="wide",
initial_sidebar_state="collapsed",
)
# Global CSS
st.markdown("""
""", unsafe_allow_html=True)
# Routing
if "page" not in st.session_state:
st.session_state.page = "home"
def goto(page: str):
st.session_state.page = page
st.rerun()
# Page dispatch
if st.session_state.page == "home":
# Hero
st.markdown("""
Hantavirus Diagnostic Platform
HantaLytics
Platform diagnosis terintegrasi untuk mendeteksi Hantavirus dengan Variabel Klinis dan Sekuens DNA.
""", unsafe_allow_html=True)
# Model cards + buttons
col1, spacer, col2 = st.columns([1, 0.08, 1])
with col1:
st.markdown("""
Model 01 ยท HantaVarNet
๐
Analisis Variabel Klinis
Prediksi infeksi Hantavirus berdasarkan data demografi
Variabel Klinis
""", unsafe_allow_html=True)
if st.button("Buka Model Variabel", key="btn_var", use_container_width=True):
goto("variabel")
with col2:
st.markdown("""
Model 02 ยท HantaSeqNet
๐งฌ
Klasifikasi Sekuens DNA
Identifikasi varian Hantavirus melalui analisis sekuens DNA
DNA Sequence
""", unsafe_allow_html=True)
if st.button("Buka Model Sekuens", key="btn_seq", use_container_width=True):
goto("sequence")
# Stats strip
st.markdown("""
8+
Variabel Numerik & Kategorikal
""", unsafe_allow_html=True)
elif st.session_state.page == "variabel":
from input_variabel import render
render(goto)
elif st.session_state.page == "sequence":
from input_sequence import render
render(goto)