|
|
|
@ -18,7 +18,6 @@ from typing import List
|
|
|
|
|
|
|
|
|
|
import uvicorn
|
|
|
|
|
from fastapi import FastAPI
|
|
|
|
|
from starlette.middleware.cors import CORSMiddleware
|
|
|
|
|
from prettytable import PrettyTable
|
|
|
|
|
from starlette.middleware.cors import CORSMiddleware
|
|
|
|
|
|
|
|
|
@ -46,6 +45,7 @@ app.add_middleware(
|
|
|
|
|
allow_methods=["*"],
|
|
|
|
|
allow_headers=["*"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@cli_server_register(
|
|
|
|
|
name='paddlespeech_server.start', description='Start the service')
|
|
|
|
|
class ServerExecutor(BaseExecutor):
|
|
|
|
@ -177,7 +177,7 @@ class ServerStatsExecutor():
|
|
|
|
|
logger.info(
|
|
|
|
|
"Here is the table of {} static pretrained models supported in the service.".
|
|
|
|
|
format(self.task.upper()))
|
|
|
|
|
self.show_support_models(pretrained_models)
|
|
|
|
|
self.show_support_models(static_pretrained_models)
|
|
|
|
|
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|