Spaces:
Running
Running
Update app.py
Browse files
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}
|