Spaces:
Runtime error
Runtime error
SyedZaid-Bin-Haris
commited on
Commit
β’
53804e7
1
Parent(s):
afe217a
a lot of chnages
Browse files- Dockerfile +1 -7
- app/__init__.py +0 -0
- app.py β app/main.py +0 -0
Dockerfile
CHANGED
@@ -1,17 +1,11 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
# Set a custom cache directory for Hugging Face
|
4 |
-
ENV HF_HOME /hf_cache
|
5 |
-
|
6 |
WORKDIR /code
|
7 |
|
8 |
-
# Create the custom cache directory and give write permissions
|
9 |
-
RUN mkdir -p ${HF_HOME} && chmod -R 777 ${HF_HOME}
|
10 |
-
|
11 |
COPY ./requirements.txt /code/requirements.txt
|
12 |
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
|
15 |
-
COPY
|
16 |
|
17 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
|
|
3 |
WORKDIR /code
|
4 |
|
|
|
|
|
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
+
COPY ./app /code/app
|
10 |
|
11 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
app/__init__.py
ADDED
File without changes
|
app.py β app/main.py
RENAMED
File without changes
|