Update app.py
Browse files
app.py
CHANGED
@@ -342,8 +342,7 @@ async def identify_language_file(
|
|
342 |
processing_time = time.time() - start_time
|
343 |
return JSONResponse(
|
344 |
status_code=500,
|
345 |
-
content={"message": "An error occurred during language identification", "details": error_details, "processing_time_seconds": processing_time}
|
346 |
-
# ... (previous code remains the same)
|
347 |
|
348 |
@app.post("/asr_languages")
|
349 |
async def get_asr_languages(request: LanguageRequest, api_key: APIKey = Depends(get_api_key)):
|
|
|
342 |
processing_time = time.time() - start_time
|
343 |
return JSONResponse(
|
344 |
status_code=500,
|
345 |
+
content={"message": "An error occurred during language identification", "details": error_details, "processing_time_seconds": processing_time})
|
|
|
346 |
|
347 |
@app.post("/asr_languages")
|
348 |
async def get_asr_languages(request: LanguageRequest, api_key: APIKey = Depends(get_api_key)):
|