TheBobBob commited on
Commit
f30f479
·
verified ·
1 Parent(s): 2d434cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -1,17 +1,21 @@
1
  import streamlit as st
2
 
3
- # File path of the file you uploaded to Hugging Face Space
4
- file_path = "BioinformaticsDashboardv0.0..Rmd" # Change this to the exact file name
 
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" # Change MIME type based on file type (e.g., 'application/pdf')
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)