diff --git a/desktop/desktop.py b/desktop/desktop.py index 4b78d79..660709f 100644 --- a/desktop/desktop.py +++ b/desktop/desktop.py @@ -19,7 +19,7 @@ def resource_path(relative_path): def run_studio(): - uvicorn.run(server.app, host="127.0.0.1", port=8759, log_level="warning") + uvicorn.run(server.app, host="127.0.0.1", port=8757, log_level="warning") def run_studio_thread(): @@ -27,7 +27,7 @@ def run_studio_thread(): def show_studio(): - webbrowser.open("http://localhost:8759") + webbrowser.open("http://localhost:8757") def quit_app(): diff --git a/server/dev.sh b/server/dev.sh index 3eac023..9b82e90 100755 --- a/server/dev.sh +++ b/server/dev.sh @@ -7,5 +7,5 @@ cd ../studio/web_ui # Needs to run from this directory cd ../../server -sleep 1 && open "http://localhost:8759" & -fastapi dev --port 8759 server.py +sleep 1 && open "http://localhost:8757" & +fastapi dev --port 8757 server.py diff --git a/server/server.py b/server/server.py index 34efebc..ec5b3eb 100644 --- a/server/server.py +++ b/server/server.py @@ -61,4 +61,4 @@ def read_item(item_id: int, q: Union[str, None] = None): app.mount("/", StaticFiles(directory=studio_path(), html=True), name="studio") if __name__ == "__main__": - uvicorn.run(app, host="127.0.0.1", port=8759) + uvicorn.run(app, host="127.0.0.1", port=8757)