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