Spaces:
Paused
Paused
Update modules/app.py
Browse files- modules/app.py +1 -1
modules/app.py
CHANGED
|
@@ -127,7 +127,7 @@ def translate_enter(userinput: str, source_lang: str, target_lang: str):
|
|
| 127 |
|
| 128 |
@app.get("/", response_class=HTMLResponse)
|
| 129 |
async def read_root(request: Request):
|
| 130 |
-
return HTMLResponse(content=open(os.path.join(templates_folder, "
|
| 131 |
|
| 132 |
@app.post("/translate_detect/")
|
| 133 |
async def translate_detect_endpoint(request: Request):
|
|
|
|
| 127 |
|
| 128 |
@app.get("/", response_class=HTMLResponse)
|
| 129 |
async def read_root(request: Request):
|
| 130 |
+
return HTMLResponse(content=open(os.path.join(templates_folder, "translator.html"), "r").read(), status_code=200)
|
| 131 |
|
| 132 |
@app.post("/translate_detect/")
|
| 133 |
async def translate_detect_endpoint(request: Request):
|