Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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")
|