Update routes/InferenceRoute.py
Browse files- routes/InferenceRoute.py +2 -2
routes/InferenceRoute.py
CHANGED
@@ -6,10 +6,10 @@ from utils.utils import decode_base64_to_audio
|
|
6 |
import base64
|
7 |
|
8 |
audio_inference_router = APIRouter(
|
9 |
-
prefix="/
|
10 |
|
11 |
|
12 |
-
@audio_inference_router.post("
|
13 |
async def tokenize_audio(request: AudioRequest):
|
14 |
file_obj = decode_base64_to_audio(request.data)
|
15 |
return get_audio_tokenizer_service().tokenize(file_obj, request.format)
|
|
|
6 |
import base64
|
7 |
|
8 |
audio_inference_router = APIRouter(
|
9 |
+
prefix="/inference", tags=["audio"])
|
10 |
|
11 |
|
12 |
+
@audio_inference_router.post("")
|
13 |
async def tokenize_audio(request: AudioRequest):
|
14 |
file_obj = decode_base64_to_audio(request.data)
|
15 |
return get_audio_tokenizer_service().tokenize(file_obj, request.format)
|