-
Notifications
You must be signed in to change notification settings - Fork 1
/
Homepage.py
47 lines (38 loc) · 1.16 KB
/
Homepage.py
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
44
45
46
47
import streamlit as st
st.set_page_config(
page_title="Homepage | Top Gear",
initial_sidebar_state="expanded"
)
readme_path = "README_ST.md"
readme_file = open(readme_path, "r")
st.title("Top Gear 2023")
st.image("data/full_width.png")
while True:
line = readme_file.readline()
st.markdown(line)
if not line:
break
readme_file.close()
st.sidebar.success("Select a page above.")
#Add all button to download all the formats
with open("data/test_input.csv", "rb") as file:
st.markdown("Input CSV File")
btn = st.download_button(
label="Download",
data=file,
file_name="test_input.csv"
)
with open("data/test_env_config.csv", "rb") as file:
st.markdown("Environment Configuration CSV File")
btn = st.download_button(
label="Download",
data=file,
file_name="test_env_config.csv"
)
with open("data/test_traj.csv", "rb") as file:
st.markdown("Trajectory CSV File")
btn = st.download_button(
label="Download",
data=file,
file_name="test_traj.csv"
)