Spaces:
Running
Running
Update server.py
Browse files
server.py
CHANGED
|
@@ -578,7 +578,9 @@ def load(request: Request, filename: str):
|
|
| 578 |
if not idx_file.exists():
|
| 579 |
return _redirect_with_flash(request, "Document index not found.")
|
| 580 |
|
|
|
|
| 581 |
with open(idx_file, "r", encoding="utf-8") as f:
|
|
|
|
| 582 |
return HTMLResponse(f.read())
|
| 583 |
|
| 584 |
|
|
|
|
| 578 |
if not idx_file.exists():
|
| 579 |
return _redirect_with_flash(request, "Document index not found.")
|
| 580 |
|
| 581 |
+
logger.info(f"{filename}")
|
| 582 |
with open(idx_file, "r", encoding="utf-8") as f:
|
| 583 |
+
logger.info(f"{f.read()}")
|
| 584 |
return HTMLResponse(f.read())
|
| 585 |
|
| 586 |
|