Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serhii milestone 2 fix #54

Merged
merged 19 commits into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions linguaphoto/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
import socketio

from linguaphoto.api.api import router
from linguaphoto.socket import sio # Import the `sio` and `notify_user` from socket.py
Expand All @@ -20,6 +21,7 @@

app.include_router(router, prefix="")

app.mount("/", socketio.ASGIApp(sio, other_asgi_app=app))
if __name__ == "__main__":
print("Starting webserver...")
uvicorn.run(app, port=8080, host="0.0.0.0")
Loading