Spaces:
Runtime error
Runtime error
scontess
commited on
Commit
Β·
3e8960a
1
Parent(s):
d592c7c
pippofinal
Browse files- Dockerfile +2 -2
- src/streamlit_app.py +1 -1
Dockerfile
CHANGED
@@ -14,9 +14,9 @@ COPY src/ ./src/
|
|
14 |
|
15 |
RUN pip3 install -r requirements.txt
|
16 |
|
17 |
-
RUN chmod -R
|
18 |
|
19 |
-
RUN mkdir -p /app/.cache && chmod -R
|
20 |
|
21 |
ENV HF_HOME=/tmp/huggingface
|
22 |
ENV HF_DATASETS_CACHE=/tmp/huggingface
|
|
|
14 |
|
15 |
RUN pip3 install -r requirements.txt
|
16 |
|
17 |
+
RUN chmod -R 777 /app
|
18 |
|
19 |
+
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
20 |
|
21 |
ENV HF_HOME=/tmp/huggingface
|
22 |
ENV HF_DATASETS_CACHE=/tmp/huggingface
|
src/streamlit_app.py
CHANGED
@@ -37,7 +37,7 @@ else:
|
|
37 |
st.warning("β οΈ Nessun token API trovato! Verifica il Secret nello Space.")
|
38 |
|
39 |
# π Carica solo 300 immagini da `imagenet_resized/64x64`
|
40 |
-
st.write("π Caricamento di 300 immagini da `
|
41 |
|
42 |
# π Recupera il valore della variabile d'ambiente
|
43 |
hf_cache_path = os.getenv("HF_DATASETS_CACHE", "β Variabile non impostata!")
|
|
|
37 |
st.warning("β οΈ Nessun token API trovato! Verifica il Secret nello Space.")
|
38 |
|
39 |
# π Carica solo 300 immagini da `imagenet_resized/64x64`
|
40 |
+
st.write("π Caricamento di 300 immagini da `tiny-imagenet`...")
|
41 |
|
42 |
# π Recupera il valore della variabile d'ambiente
|
43 |
hf_cache_path = os.getenv("HF_DATASETS_CACHE", "β Variabile non impostata!")
|