Spaces:
Running
Running
change app.py location
Browse files
README.md
CHANGED
@@ -3,7 +3,7 @@ title: MLIP Arena
|
|
3 |
emoji: ⚛
|
4 |
sdk: streamlit
|
5 |
sdk_version: 1.36.0 # The latest supported version
|
6 |
-
app_file:
|
7 |
---
|
8 |
|
9 |
# mlip-arena
|
|
|
3 |
emoji: ⚛
|
4 |
sdk: streamlit
|
5 |
sdk_version: 1.36.0 # The latest supported version
|
6 |
+
app_file: app.py
|
7 |
---
|
8 |
|
9 |
# mlip-arena
|
app.py
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
st.set_page_config(
|
4 |
+
layout="wide",
|
5 |
+
page_title="MLIP Arena",
|
6 |
+
page_icon=":shark:",
|
7 |
+
# initial_sidebar_state="expanded",
|
8 |
+
menu_items=None
|
9 |
+
)
|
10 |
+
|
11 |
+
# if "logged_in" not in st.session_state:
|
12 |
+
# st.session_state.logged_in = False
|
13 |
+
|
14 |
+
# def login():
|
15 |
+
# if st.button("Log in"):
|
16 |
+
# st.session_state.logged_in = True
|
17 |
+
# st.rerun()
|
18 |
+
|
19 |
+
# def logout():
|
20 |
+
# if st.button("Log out"):
|
21 |
+
# st.session_state.logged_in = False
|
22 |
+
# st.rerun()
|
23 |
+
|
24 |
+
# login_page = st.Page(login, title="Log in", icon=":material/login:")
|
25 |
+
# logout_page = st.Page(logout, title="Log out", icon=":material/logout:")
|
26 |
+
|
27 |
+
dashboard = st.Page(
|
28 |
+
"serve/reports/dashboard.py", title="Dashboard", icon=":material/dashboard:", default=True
|
29 |
+
)
|
30 |
+
bugs = st.Page("serve/reports/bugs.py", title="Bug reports", icon=":material/bug_report:")
|
31 |
+
alerts = st.Page(
|
32 |
+
"serve/reports/alerts.py", title="System alerts", icon=":material/notification_important:"
|
33 |
+
)
|
34 |
+
|
35 |
+
search = st.Page("serve/tools/search.py", title="Search", icon=":material/search:")
|
36 |
+
history = st.Page("serve/tools/history.py", title="History", icon=":material/history:")
|
37 |
+
|
38 |
+
diatomics = st.Page("serve/tasks/homonuclear-diatomics.py", title="Homonuclear diatomics", icon="")
|
39 |
+
|
40 |
+
# if st.session_state.logged_in:
|
41 |
+
pg = st.navigation(
|
42 |
+
{
|
43 |
+
# "Account": [logout_page],
|
44 |
+
"Reports": [dashboard, bugs, alerts],
|
45 |
+
"Tools": [search, history],
|
46 |
+
"Tasks": [diatomics],
|
47 |
+
}
|
48 |
+
)
|
49 |
+
# else:
|
50 |
+
# pg = st.navigation([login_page])
|
51 |
+
|
52 |
+
pg.run()
|