Spaces:
Sleeping
Sleeping
mrfirdauss
commited on
Commit
•
6b1a7ed
1
Parent(s):
4e8974b
Upload folder using huggingface_hub
Browse files- .env +1 -0
- Dockerfile +1 -2
- __pycache__/main.cpython-310.pyc +0 -0
.env
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
API_KEY=AIzaSyD0H8Z-q4eHvvixDWw7XuuDzR6uXuUBDJQ
|
Dockerfile
CHANGED
@@ -4,7 +4,6 @@ WORKDIR /
|
|
4 |
RUN cat /requirements.txt
|
5 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
6 |
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as a Bearer token for a curl request
|
7 |
-
|
8 |
-
curl test -H 'Authorization: Bearer $(cat /run/secrets/API_KEY)'
|
9 |
|
10 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
4 |
RUN cat /requirements.txt
|
5 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
6 |
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as a Bearer token for a curl request
|
7 |
+
ENV API_KEY=${API_KEY}
|
|
|
8 |
|
9 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
__pycache__/main.cpython-310.pyc
ADDED
Binary file (6.6 kB). View file
|
|