mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 12:26:01 +08:00
@ -36,8 +36,10 @@ def serve(
|
||||
"timeout": timeout,
|
||||
}
|
||||
|
||||
if platform.system() == "Darwin":
|
||||
# Run using uvicorn on MacOS
|
||||
if platform.system() in ["Darwin", "Windows"]:
|
||||
# Run using uvicorn on MacOS and Windows
|
||||
# Windows doesn't support gunicorn
|
||||
# MacOS requires a env variable to be set to use gunicorn
|
||||
import uvicorn
|
||||
|
||||
uvicorn.run(app, host=host, port=port, log_level="info")
|
||||
|
||||
Reference in New Issue
Block a user