MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / main

Function main

fastdeploy/entrypoints/api_server.py:121–129  ·  view source on GitHub ↗

main函数

()

Source from the content-addressed store, hash-verified

119
120
121def main():
122 """main函数"""
123 parser = FlexibleArgumentParser()
124 parser.add_argument("--port", default=9904, type=int, help="port to the http server")
125 parser.add_argument("--host", default="0.0.0.0", type=str, help="host to the http server")
126 parser.add_argument("--workers", default=1, type=int, help="number of workers")
127 parser = EngineArgs.add_cli_args(parser)
128 args = parser.parse_args()
129 launch_api_server(args)
130
131
132if __name__ == "__main__":

Callers 1

api_server.pyFile · 0.70

Calls 4

parse_argsMethod · 0.95
launch_api_serverFunction · 0.70
add_cli_argsMethod · 0.45

Tested by

no test coverage detected