Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,7 @@ translator_en_fa = pipeline("translation_en_to_fa", model="opus-mt-en-zh")
|
|
| 7 |
|
| 8 |
@app.get("/")
|
| 9 |
def home():
|
| 10 |
-
return {"message": "Welcome to English–Switzerland
|
| 11 |
-
Translator!"}
|
| 12 |
|
| 13 |
@app.get("/translate")
|
| 14 |
def translate(text: str = Query(...)):
|
|
|
|
| 7 |
|
| 8 |
@app.get("/")
|
| 9 |
def home():
|
| 10 |
+
return {"message": "Welcome to English–Switzerland Translator!"}
|
|
|
|
| 11 |
|
| 12 |
@app.get("/translate")
|
| 13 |
def translate(text: str = Query(...)):
|