Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,21 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
|
|
5 |
|
6 |
# Provide a description or instructions
|
7 |
st.title("Please make sure you have RStudio and R installed before doing this!")
|
8 |
st.write("Click the button below to download the BioinformaticsDashboard! Currently in version 0 🧬")
|
9 |
|
10 |
-
# Button to download the file
|
11 |
with open(file_path, "rb") as file:
|
12 |
st.download_button(
|
13 |
label="Download File",
|
14 |
data=file,
|
15 |
file_name=file_path,
|
16 |
-
mime="application/Rmd" #
|
17 |
)
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
file_path = "BioinformaticsDashboardv0.0.Rmd"
|
4 |
+
|
5 |
+
video_path = 'BioinformaticsDashboard v0.0 Demo ‑ Made with RecordCast.mp4'
|
6 |
|
7 |
# Provide a description or instructions
|
8 |
st.title("Please make sure you have RStudio and R installed before doing this!")
|
9 |
st.write("Click the button below to download the BioinformaticsDashboard! Currently in version 0 🧬")
|
10 |
|
11 |
+
# Button to download the .Rmd file
|
12 |
with open(file_path, "rb") as file:
|
13 |
st.download_button(
|
14 |
label="Download File",
|
15 |
data=file,
|
16 |
file_name=file_path,
|
17 |
+
mime="application/Rmd" # MIME type for RMarkdown files
|
18 |
)
|
19 |
+
|
20 |
+
# Display the video
|
21 |
+
st.video(video_path)
|