import sys from pathlib import Path # Add parent directory to PYTHONPATH sys.path.append(str(Path(__file__).resolve().parent.parent)) from app import ModelAPI api = ModelAPI( host = "0.0.0.0", port = 6500 ) api.run()