Skip to content

Commit

Permalink
Serhii milestone 2 fix (#54)
Browse files Browse the repository at this point in the history
* chores_lint_errors_and_path_issues

* feature_db_py

* fix_audio_issue

* chores_lint_error

* fix_openAPI_switching

* chore_module_insert

* fix_edit_collection_fix

* fix_frontend_critical_update

* fix_feedback2_translation_async

* chore:lint

* chore:loading_issue

* chore:module

* chore:version-python-socketio[asgi]

* chore:main.py
  • Loading branch information
Serhii Ofii authored Oct 18, 2024
1 parent 95e3d1d commit c4f8491
Showing 1 changed file with 2 additions and 0 deletions.
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")

0 comments on commit c4f8491

Please sign in to comment.