TiberiuCristianLeon commited on
Commit
7e75998
·
verified ·
1 Parent(s): 7db8a97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def paraphrase(text: str, model: str):
43
  return {"input": text, "translation": resultValue, "exception": exception}
44
 
45
  @app.get("/translate", operation_id="get_translate", description="Translate text", tags=["translate"], summary="Translate text")
46
- def translate(text: str, model: Optional[str] = MTMODELS['gemma']):
47
  if 'BlackKakapo' in model:
48
  resultValue = Translate.paraphraseTranslateMethod(text, model)
49
  else:
 
43
  return {"input": text, "translation": resultValue, "exception": exception}
44
 
45
  @app.get("/translate", operation_id="get_translate", description="Translate text", tags=["translate"], summary="Translate text")
46
+ def translate(text: str, model: Optional[str] = MTMODELS['enro']):
47
  if 'BlackKakapo' in model:
48
  resultValue = Translate.paraphraseTranslateMethod(text, model)
49
  else: