Spaces:
Runtime error
Runtime error
Commit
·
5bc6cbd
1
Parent(s):
cc9a981
arquivo env e dockerfile com token
Browse files- .env +1 -0
- Dockerfile +3 -0
- requirements.txt +0 -1
.env
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
HUGGINGFACE_HUB_TOKEN=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
|
Dockerfile
CHANGED
@@ -4,6 +4,9 @@ WORKDIR /app
|
|
4 |
|
5 |
COPY . /app
|
6 |
|
|
|
|
|
|
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
4 |
|
5 |
COPY . /app
|
6 |
|
7 |
+
# Copiar variável de ambiente
|
8 |
+
ENV HUGGINGFACE_HUB_TOKEN=${HUGGINGFACE_HUB_TOKEN}
|
9 |
+
|
10 |
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
|
12 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
huggingface_hub==0.25.2
|
2 |
fastapi
|
3 |
uvicorn
|
4 |
transformers
|
|
|
|
|
1 |
fastapi
|
2 |
uvicorn
|
3 |
transformers
|