Edmond7 commited on
Commit
95eaa4c
1 Parent(s): c0c3100

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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)):