Spaces:
Sleeping
Sleeping
Add a file download
Browse files
app.py
CHANGED
|
@@ -39,3 +39,18 @@ predict_and_write(
|
|
| 39 |
val_cols=["obs" "exp" "pval"],
|
| 40 |
# keep_zeros,
|
| 41 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
val_cols=["obs" "exp" "pval"],
|
| 40 |
# keep_zeros,
|
| 41 |
)
|
| 42 |
+
|
| 43 |
+
# Print and list the files
|
| 44 |
+
import os
|
| 45 |
+
|
| 46 |
+
st.write("Files created:")
|
| 47 |
+
st.write(os.listdir("results"))
|
| 48 |
+
|
| 49 |
+
# Offer a download
|
| 50 |
+
st.write("Download the results")
|
| 51 |
+
st.download_button(
|
| 52 |
+
label="Download Results",
|
| 53 |
+
data="results",
|
| 54 |
+
file_name="results.zip",
|
| 55 |
+
mime="application/zip",
|
| 56 |
+
)
|