woods-today commited on
Commit
cb76ab3
1 Parent(s): 278270a

Working on it

Browse files
Files changed (1) hide show
  1. endpoints.py +3 -2
endpoints.py CHANGED
@@ -6,7 +6,8 @@ from config import settings
6
 
7
  login(settings.huggingface_key)
8
 
9
- app = FastAPI(openapi_url="/api/v1/sparrow-ml/openapi.json", docs_url="/api/v1/sparrow-ml/docs")
 
10
 
11
  app.add_middleware(
12
  CORSMiddleware,
@@ -17,7 +18,7 @@ app.add_middleware(
17
  )
18
 
19
  # app.include_router(inference.router, prefix="/api-inference/v1/sparrow-ml", tags=["Inference"])
20
- app.include_router(training.router, prefix="/api-training/v1/sparrow-ml", tags=["Training"])
21
 
22
 
23
  @app.get("/")
 
6
 
7
  login(settings.huggingface_key)
8
 
9
+ # app = FastAPI(openapi_url="/api/v1/sparrow-ml/openapi.json", docs_url="/api/v1/sparrow-ml/docs")
10
+ app = FastAPI()
11
 
12
  app.add_middleware(
13
  CORSMiddleware,
 
18
  )
19
 
20
  # app.include_router(inference.router, prefix="/api-inference/v1/sparrow-ml", tags=["Inference"])
21
+ app.include_router(training.router)
22
 
23
 
24
  @app.get("/")