thuannh commited on
Commit
43a11da
1 Parent(s): 74adb64

Update routes/InferenceRoute.py

Browse files
Files changed (1) hide show
  1. 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="/audio", tags=["audio"])
10
 
11
 
12
- @audio_inference_router.post("/inference")
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)