TiberiuCristianLeon commited on
Commit
5936387
·
verified ·
1 Parent(s): f104456

Update app.py

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