Spaces:
Runtime error
Runtime error
Commit
·
3974c74
1
Parent(s):
9bee466
Update router
Browse files- backend/router.py +5 -5
backend/router.py
CHANGED
@@ -56,10 +56,10 @@ async def regenerate_api_key(access_token: str = Depends(JWTBearer())):
|
|
56 |
|
57 |
return ops_regenerate_api_key(user_sub)
|
58 |
|
59 |
-
@app.post("/api/inference", summary="Inference", response_model=Inference, tags=["Resource Server"], dependencies=[Depends(JWTBearer())])
|
60 |
-
async def inference(code_block:str, api_key: str,access_token:str=Depends(JWTBearer())):
|
61 |
-
|
62 |
|
63 |
-
|
64 |
|
65 |
-
|
|
|
56 |
|
57 |
return ops_regenerate_api_key(user_sub)
|
58 |
|
59 |
+
# @app.post("/api/inference", summary="Inference", response_model=Inference, tags=["Resource Server"], dependencies=[Depends(JWTBearer())])
|
60 |
+
# async def inference(code_block:str, api_key: str,access_token:str=Depends(JWTBearer())):
|
61 |
+
# user_sub=Auth.get_user_credentials(access_token)
|
62 |
|
63 |
+
# print("after res")
|
64 |
|
65 |
+
# return ops_inference(code_block,api_key,user_sub)
|