TiberiuCristianLeon commited on
Commit
b9864fd
·
verified ·
1 Parent(s): 275593f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,5 +17,5 @@ def paraphrase(text: str, model: str):
17
  @app.get("/translate")
18
  def translate(text: str, model: str):
19
  # resultValue, exception = Translate.paraphraseTranslateMethod(text, model)
20
- resultValue, exception = Translate.gemma(text, model)
21
  return {"input": text, "translation": resultValue, "exception": exception}
 
17
  @app.get("/translate")
18
  def translate(text: str, model: str):
19
  # resultValue, exception = Translate.paraphraseTranslateMethod(text, model)
20
+ resultValue, exception = Translate.gemma_direct(text, model)
21
  return {"input": text, "translation": resultValue, "exception": exception}