File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
3- from typing import TYPE_CHECKING , Any
1+ from collections .abc import Callable
2+ from typing import Any
43
4+ import fastapi
55import httpx
6+ from fastapi import Request
7+ from fastapi .responses import JSONResponse , Response
68from loguru import logger
79from pydantic import BaseModel
810
9-
10- if TYPE_CHECKING :
11- from collections .abc import Callable
12-
13- from checkpoint_engine .ps import ParameterServer
11+ from checkpoint_engine .ps import ParameterServer
1412
1513
1614def request_inference_to_update (
@@ -45,10 +43,6 @@ def request_inference_to_update(
4543
4644
4745def _init_api (ps : ParameterServer ) -> Any :
48- import fastapi
49- from fastapi import Request
50- from fastapi .responses import JSONResponse , Response
51-
5246 app = fastapi .FastAPI ()
5347
5448 class RegisterRequest (BaseModel ):
You can’t perform that action at this time.
0 commit comments