TiberiuCristianLeon commited on
Commit
5829d30
·
verified ·
1 Parent(s): c55d8e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,5 +20,5 @@ def paraphrase(text: str, model: str):
20
  @app.get("/translate")
21
  def translate(text: str, model: Optional[str] = MTMODELS['gemma']):
22
  # resultValue, exception = Translate.paraphraseTranslateMethod(text, model)
23
- resultValue, exception = Translate.gemma_direct(text, model)
24
- return {"input": text, "translation": resultValue, "exception": exception}
 
20
  @app.get("/translate")
21
  def translate(text: str, model: Optional[str] = MTMODELS['gemma']):
22
  # resultValue, exception = Translate.paraphraseTranslateMethod(text, model)
23
+ resultValue = Translate.gemma_direct(text, model)
24
+ return {"input": text, "result": resultValue, "model": model}