scontess commited on
Commit
3d1018f
ยท
1 Parent(s): d14694e
Files changed (2) hide show
  1. Dockerfile +2 -0
  2. 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