Spaces:
Sleeping
Sleeping
fix request error
Browse files- Dockerfile +1 -2
- requirements.txt +2 -1
Dockerfile
CHANGED
@@ -9,12 +9,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
9 |
# Copy source code
|
10 |
COPY app.py .
|
11 |
|
|
|
12 |
RUN mkdir -p /app/cache
|
13 |
|
14 |
-
# Set env vars to avoid permission issues and suppress deprecation warnings
|
15 |
ENV HF_HOME=/app/cache \
|
16 |
PYTHONUNBUFFERED=1
|
17 |
-
# ENV HF_HOME=/tmp/.cache
|
18 |
|
19 |
EXPOSE 7860
|
20 |
|
|
|
9 |
# Copy source code
|
10 |
COPY app.py .
|
11 |
|
12 |
+
# Set up Hugging Face cache
|
13 |
RUN mkdir -p /app/cache
|
14 |
|
|
|
15 |
ENV HF_HOME=/app/cache \
|
16 |
PYTHONUNBUFFERED=1
|
|
|
17 |
|
18 |
EXPOSE 7860
|
19 |
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
transformers==4.40.0
|
2 |
torch==2.1.2
|
3 |
-
gradio==4.
|
|
|
|
1 |
transformers==4.40.0
|
2 |
torch==2.1.2
|
3 |
+
gradio==4.44.1
|
4 |
+
|