Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
# Display the title of the app
|
7 |
+
st.title("Download Your File")
|
8 |
+
|
9 |
+
# Provide a description or instructions
|
10 |
+
st.write("Click the button below to download the file.")
|
11 |
+
|
12 |
+
# Button to download the file
|
13 |
+
with open(file_path, "rb") as file:
|
14 |
+
st.download_button(
|
15 |
+
label="Download File",
|
16 |
+
data=file,
|
17 |
+
file_name=file_path,
|
18 |
+
mime="application/zip" # Change MIME type based on file type (e.g., 'application/pdf')
|
19 |
+
)
|