PetAgent/backend/run.py

24 lines
427 B
Python
Raw Normal View History

2026-04-12 11:32:37 +08:00
#!/usr/bin/env python
"""
Startup script for the backend server
"""
import sys
import os
# Add current directory to Python path
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, current_dir)
# Now import and run the app
if __name__ == "__main__":
import uvicorn
from main import app
uvicorn.run(
"main:app",
host="0.0.0.0",
port=8001,
reload=True
)