Spaces:
Runtime error
Runtime error
Commit
·
c25ebd9
1
Parent(s):
da570df
testing secrets
Browse files- Dockerfile +1 -1
- app.py +2 -1
Dockerfile
CHANGED
@@ -17,4 +17,4 @@ COPY --chown=user:user . /app
|
|
17 |
|
18 |
|
19 |
# Command to run the application
|
20 |
-
CMD ["uvicorn", "
|
|
|
17 |
|
18 |
|
19 |
# Command to run the application
|
20 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
@@ -2,6 +2,7 @@ from fastapi import FastAPI
|
|
2 |
from config import settings
|
3 |
app = FastAPI()
|
4 |
|
|
|
5 |
@app.get("/")
|
6 |
def greet_json():
|
7 |
-
return {"
|
|
|
2 |
from config import settings
|
3 |
app = FastAPI()
|
4 |
|
5 |
+
huggingface_key = settings.huggingface_key
|
6 |
@app.get("/")
|
7 |
def greet_json():
|
8 |
+
return {"HUGGINGFACE_API_KEY": huggingface_key}
|