🎨 style: Format Code

This commit is contained in:
yyhhyyyyyy
2024-12-10 10:34:56 +08:00
parent 809d6cabbb
commit afd064e15d
17 changed files with 123 additions and 95 deletions

View File

@@ -1,5 +1,5 @@
import threading
from typing import Callable, Any, Dict
from typing import Any, Callable, Dict
class TaskManager:
@@ -33,7 +33,7 @@ class TaskManager:
try:
with self.lock:
self.current_tasks += 1
func(*args, **kwargs) # 在这里调用函数,传递*args和**kwargs
func(*args, **kwargs) # call the function here, passing *args and **kwargs.
finally:
self.task_done()

View File

@@ -1,5 +1,4 @@
from fastapi import APIRouter
from fastapi import Request
from fastapi import APIRouter, Request
router = APIRouter()

View File

@@ -1,4 +1,4 @@
from fastapi import APIRouter, Depends
from fastapi import APIRouter
def new_router(dependencies=None):

View File

@@ -1,15 +1,16 @@
from fastapi import Request
from app.controllers.v1.base import new_router
from app.models.schema import (
VideoScriptResponse,
VideoScriptRequest,
VideoTermsResponse,
VideoScriptResponse,
VideoTermsRequest,
VideoTermsResponse,
)
from app.services import llm
from app.utils import utils
# 认证依赖项
# authentication dependency
# router = new_router(dependencies=[Depends(base.verify_token)])
router = new_router()