TiberiuCristianLeon commited on
Commit
698fb3f
·
verified ·
1 Parent(s): 786aa14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def index():
15
 
16
  @app.get("/paraphrase")
17
  def paraphrase(text: str, model: str, operation_id="get_paraphrase", description="Paraphrase text"):
18
- resultValue: str, exception: str = Paraphrase.paraphraseParaphraseMethod(text, model)
19
  return {"input": text, "translation": resultValue, "exception": exception}
20
 
21
  @app.get("/translate")
 
15
 
16
  @app.get("/paraphrase")
17
  def paraphrase(text: str, model: str, operation_id="get_paraphrase", description="Paraphrase text"):
18
+ resultValue, exception = Paraphrase.paraphraseParaphraseMethod(text, model)
19
  return {"input": text, "translation": resultValue, "exception": exception}
20
 
21
  @app.get("/translate")