Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def paraphrase(text: str, model: str):
|
|
| 43 |
return {"input": text, "translation": resultValue, "exception": exception}
|
| 44 |
|
| 45 |
@app.get("/translate", operation_id="get_translate", description="Translate text", tags=["translate"], summary="Translate text")
|
| 46 |
-
def translate(text: str, model: Optional[str] = MTMODELS['
|
| 47 |
if 'BlackKakapo' in model:
|
| 48 |
resultValue = Translate.paraphraseTranslateMethod(text, model)
|
| 49 |
else:
|
|
|
|
| 43 |
return {"input": text, "translation": resultValue, "exception": exception}
|
| 44 |
|
| 45 |
@app.get("/translate", operation_id="get_translate", description="Translate text", tags=["translate"], summary="Translate text")
|
| 46 |
+
def translate(text: str, model: Optional[str] = MTMODELS['enro']):
|
| 47 |
if 'BlackKakapo' in model:
|
| 48 |
resultValue = Translate.paraphraseTranslateMethod(text, model)
|
| 49 |
else:
|