Commit de4ca493 by ‘chizw’

[+]oom优化

1 parent 53a42b26
Showing 1 changed file with 2 additions and 0 deletions
...@@ -11,6 +11,7 @@ import uuid ...@@ -11,6 +11,7 @@ import uuid
import pydantic import pydantic
import uvicorn import uvicorn
import sys import sys
from utils import ap_scheduler_util
from fastapi import FastAPI, File, UploadFile from fastapi import FastAPI, File, UploadFile
from funasr_service import FunasrService from funasr_service import FunasrService
from pydantic import BaseModel from pydantic import BaseModel
...@@ -237,6 +238,7 @@ if __name__ == "__main__": ...@@ -237,6 +238,7 @@ if __name__ == "__main__":
log.info("funasr main starting...") log.info("funasr main starting...")
start_kafka() start_kafka()
funasr_producer.send_wait_task() funasr_producer.send_wait_task()
ap_scheduler_util.scheduler_start()
save_path = "./audio/" save_path = "./audio/"
if os.path.exists(save_path): if os.path.exists(save_path):
shutil.rmtree(save_path) shutil.rmtree(save_path)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!