Spaces:
Runtime error
Runtime error
scontess
commited on
Commit
ยท
3d1018f
1
Parent(s):
d14694e
ss
Browse files- Dockerfile +2 -0
- src/streamlit_app.py +1 -0
Dockerfile
CHANGED
@@ -16,6 +16,8 @@ RUN pip3 install -r requirements.txt
|
|
16 |
|
17 |
RUN chmod -R 755 /app
|
18 |
|
|
|
|
|
19 |
EXPOSE 8501
|
20 |
|
21 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
|
|
16 |
|
17 |
RUN chmod -R 755 /app
|
18 |
|
19 |
+
RUN mkdir -p /app/.cache && chmod -R 755 /app/.cache
|
20 |
+
|
21 |
EXPOSE 8501
|
22 |
|
23 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
src/streamlit_app.py
CHANGED
@@ -17,6 +17,7 @@ import os
|
|
17 |
# ๐ Percorso della cartella dove sarร salvato il dataset
|
18 |
DATA_DIR = "/app" #"/tmp"
|
19 |
|
|
|
20 |
# ๐ Autenticazione Hugging Face dal Secret nello Space
|
21 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
22 |
|
|
|
17 |
# ๐ Percorso della cartella dove sarร salvato il dataset
|
18 |
DATA_DIR = "/app" #"/tmp"
|
19 |
|
20 |
+
|
21 |
# ๐ Autenticazione Hugging Face dal Secret nello Space
|
22 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
23 |
|