-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
43 lines (37 loc) · 1.01 KB
/
app.py
File metadata and controls
43 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""InferDyssey — Research OS for Apple Silicon Inference."""
import streamlit as st
st.set_page_config(
page_title="InferDyssey",
page_icon="🔬",
layout="wide",
initial_sidebar_state="expanded",
)
# --- Sidebar ---
st.sidebar.title("InferDyssey")
st.sidebar.caption("Research OS for Apple Silicon Inference")
st.sidebar.divider()
page = st.sidebar.radio(
"Navigate",
["Learn", "Workspaces", "Specs", "Settings"],
index=0,
label_visibility="collapsed",
)
# --- Initialize session state ---
if "api_key" not in st.session_state:
st.session_state.api_key = ""
if "hardware" not in st.session_state:
from core.hardware import detect
st.session_state.hardware = detect()
# --- Route to pages ---
if page == "Learn":
from views.learn import render
render()
elif page == "Workspaces":
from views.workspaces import render
render()
elif page == "Specs":
from views.specs import render
render()
elif page == "Settings":
from views.settings import render
render()