TiberiuCristianLeon commited on
Commit
9f45cd5
·
verified ·
1 Parent(s): 4a66d9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,10 +12,10 @@ def index():
12
 
13
  @app.get("/paraphrase")
14
  def paraphrase(text: str, model: str):
15
- resultValue, exception = Paraphrase.paraphraseParaphraseMethod(text)
16
  return {"request": text, "result": resultValue, "exception": exception}
17
 
18
  @app.get("/translate")
19
  def translate(text: str, model: str):
20
- resultValue, exception = Translate.paraphraseTranslateMethod(text)
21
  return {"request": text, "result": resultValue, "exception": exception}
 
12
 
13
  @app.get("/paraphrase")
14
  def paraphrase(text: str, model: str):
15
+ resultValue, exception = Paraphrase.paraphraseParaphraseMethod(text, model)
16
  return {"request": text, "result": resultValue, "exception": exception}
17
 
18
  @app.get("/translate")
19
  def translate(text: str, model: str):
20
+ resultValue, exception = Translate.paraphraseTranslateMethod(text, model)
21
  return {"request": text, "result": resultValue, "exception": exception}