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