KingNish commited on
Commit
ea2ba05
·
verified ·
1 Parent(s): 8d4f1eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -427,7 +427,7 @@ def google_translate(q: str, from_: Optional[str] = None, to: str = "en"):
427
  detected_language = translations.src
428
  original = translations.origin
429
  translated = translations.text
430
- return JSONResponse(content=jsonable_encoder("detected_language": detected_language , "original": original , "translated": translated))
431
  except Exception as e:
432
  raise HTTPException(status_code=500, detail=f"Error during translation: {e}")
433
 
 
427
  detected_language = translations.src
428
  original = translations.origin
429
  translated = translations.text
430
+ return JSONResponse(content=jsonable_encoder({"detected_language": detected_language , "original": original , "translated": translated}))
431
  except Exception as e:
432
  raise HTTPException(status_code=500, detail=f"Error during translation: {e}")
433