Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,5 +19,6 @@ def paraphrase(text: str, model: str):
|
|
| 19 |
|
| 20 |
@app.get("/translate")
|
| 21 |
def translate(text: str, model: str):
|
| 22 |
-
resultValue, exception = Translate.paraphraseTranslateMethod(text, model)
|
|
|
|
| 23 |
return {"input": text, "translation": resultValue, "exception": exception}
|
|
|
|
| 19 |
|
| 20 |
@app.get("/translate")
|
| 21 |
def translate(text: str, model: str):
|
| 22 |
+
# resultValue, exception = Translate.paraphraseTranslateMethod(text, model)
|
| 23 |
+
resultValue, exception = Translate.gemma(text, model)
|
| 24 |
return {"input": text, "translation": resultValue, "exception": exception}
|