Add logging for arguments of /inference endpoint
This commit is contained in:
@@ -12,6 +12,10 @@ from rvc.modules.vc.modules import VC
|
|||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
|
logger: logging.Logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
@@ -44,6 +48,8 @@ def inference(
|
|||||||
protect: float = Form(0.33),
|
protect: float = Form(0.33),
|
||||||
):
|
):
|
||||||
print(res_type)
|
print(res_type)
|
||||||
|
logger.info(f"Arguments: {locals()}")
|
||||||
|
|
||||||
vc = VC()
|
vc = VC()
|
||||||
vc.get_vc(modelpath)
|
vc.get_vc(modelpath)
|
||||||
tgt_sr, audio_opt, times, _ = vc.vc_inference(
|
tgt_sr, audio_opt, times, _ = vc.vc_inference(
|
||||||
|
|||||||
Reference in New Issue
Block a user