From 95b51cc223e6874ea3414a3e9e903cd1fc830997 Mon Sep 17 00:00:00 2001 From: Thai Nguyen Date: Mon, 16 Dec 2024 15:43:27 +0700 Subject: [PATCH] Fix VAD issue on main.py --- backend/modal/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/modal/main.py b/backend/modal/main.py index 2bc4ef876..5a1ee2ea6 100644 --- a/backend/modal/main.py +++ b/backend/modal/main.py @@ -15,7 +15,7 @@ def speaker_identification( return speaker_identification_endpoint(uid, audio_file, segments) @app.post('/v1/vad') -def vad(audio_file: UploadFile = File): +def vad(file: UploadFile = File): print('vad') print(vad_endpoint) - return vad_endpoint(audio_file) + return vad_endpoint(file)