Update core/app.py
Browse files- core/app.py +4 -0
core/app.py
CHANGED
|
@@ -103,6 +103,10 @@ async def root(request: Request):
|
|
| 103 |
with open("templates/index.html", "r") as file:
|
| 104 |
return HTMLResponse(content=file.read())
|
| 105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
if __name__ == "__main__":
|
| 107 |
import uvicorn
|
| 108 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 103 |
with open("templates/index.html", "r") as file:
|
| 104 |
return HTMLResponse(content=file.read())
|
| 105 |
|
| 106 |
+
app.get("/favicon.ico", include_in_schema=False)
|
| 107 |
+
async def favicon():
|
| 108 |
+
return {"url": "/static/icon.png"}
|
| 109 |
+
|
| 110 |
if __name__ == "__main__":
|
| 111 |
import uvicorn
|
| 112 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|