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