Spaces:
Sleeping
Sleeping
update permission
Browse files- Dockerfile +4 -0
- utils.py +1 -1
Dockerfile
CHANGED
@@ -6,6 +6,10 @@ RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
|
|
6 |
|
7 |
COPY . ./
|
8 |
|
|
|
|
|
|
|
|
|
9 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
10 |
|
11 |
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
6 |
|
7 |
COPY . ./
|
8 |
|
9 |
+
RUN mkdir -p /app/.streamlit && chmod -R 777 /app/.streamlit
|
10 |
+
|
11 |
+
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
|
12 |
+
|
13 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
utils.py
CHANGED
@@ -8,7 +8,7 @@ from moviepy.video.io.VideoFileClip import VideoFileClip
|
|
8 |
from speechbrain.pretrained.interfaces import foreign_class
|
9 |
|
10 |
logging.basicConfig(
|
11 |
-
filename="app.log",
|
12 |
filemode="a",
|
13 |
format="%(asctime)s - %(levelname)s - %(message)s",
|
14 |
level=logging.INFO,
|
|
|
8 |
from speechbrain.pretrained.interfaces import foreign_class
|
9 |
|
10 |
logging.basicConfig(
|
11 |
+
filename="/tmp/app.log",
|
12 |
filemode="a",
|
13 |
format="%(asctime)s - %(levelname)s - %(message)s",
|
14 |
level=logging.INFO,
|