Spaces:
Running
Running
Updated the login token
Browse files- endpoints.py +2 -2
endpoints.py
CHANGED
@@ -3,9 +3,9 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
3 |
from routers import inference, training
|
4 |
from huggingface_hub import login
|
5 |
from config import settings
|
6 |
-
|
7 |
# login(settings.huggingface_key)
|
8 |
-
login(os.
|
9 |
|
10 |
app = FastAPI(openapi_url="/api/v1/sparrow-ml/openapi.json", docs_url="/api/v1/sparrow-ml/docs")
|
11 |
|
|
|
3 |
from routers import inference, training
|
4 |
from huggingface_hub import login
|
5 |
from config import settings
|
6 |
+
import os
|
7 |
# login(settings.huggingface_key)
|
8 |
+
login(os.getenv("HUGGINGFACE_KEY"))
|
9 |
|
10 |
app = FastAPI(openapi_url="/api/v1/sparrow-ml/openapi.json", docs_url="/api/v1/sparrow-ml/docs")
|
11 |
|