TiberiuCristianLeon commited on
Commit
2130cf2
·
verified ·
1 Parent(s): 0c98e15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,11 +11,11 @@ def index():
11
  return {"output": "HELLO!!!"}
12
 
13
  @app.get("/paraphrase")
14
- def paraphrase(text: 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):
20
  resultValue, exception = Translate.paraphraseTranslateMethod(text)
21
  return {"request": text, "result": resultValue, "exception": exception}
 
11
  return {"output": "HELLO!!!"}
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}