File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 39
39
SystemLoggingMiddleware ,
40
40
log_system_information ,
41
41
)
42
- from fastapi import Depends , FastAPI , UploadFile
42
+ from fastapi import FastAPI , UploadFile
43
43
from starlette .responses import RedirectResponse
44
44
45
45
@@ -253,17 +253,13 @@ def _add_pipeline_endpoint(
253
253
input_schema = pipeline .input_schema
254
254
output_schema = pipeline .output_schema
255
255
256
- async def endpoints_params ():
257
- # global parameters that will be passed to all the endpoints of the server
258
- return {"system_logging_config" : system_logging_config }
259
-
260
- def _predict (request : pipeline .input_schema , params = Depends (endpoints_params )):
256
+ def _predict (request : pipeline .input_schema ):
261
257
pipeline_outputs = pipeline (request )
262
258
server_logger = pipeline .logger
263
259
if server_logger :
264
260
log_system_information (
265
261
server_logger = server_logger ,
266
- system_logging_config = params . get ( " system_logging_config" ) ,
262
+ system_logging_config = system_logging_config ,
267
263
)
268
264
return pipeline_outputs
269
265
You can’t perform that action at this time.
0 commit comments