Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,12 @@
|
|
1 |
import streamlit as st
|
2 |
import huggingface_hub as hf_hub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
-
st.write(st.secrets["HF_TOKEN"])
|
|
|
1 |
import streamlit as st
|
2 |
import huggingface_hub as hf_hub
|
3 |
+
import monai
|
4 |
+
import os
|
5 |
+
|
6 |
+
hf_hub.login(token=st.secrets["HF_TOKEN"])
|
7 |
+
|
8 |
+
with st.spinner("Downloading Dataset"):
|
9 |
+
data_path = hf_hub.hf_hub_download(repo_id="osbm/prostate158", filename="data.zip", repo_type="dataset")
|
10 |
+
|
11 |
+
st.write(data_path)
|
12 |
|
|