Spaces:
Sleeping
Sleeping
| import os | |
| import sys | |
| import uvicorn | |
| from pathlib import Path | |
| # Add current directory to path for imports | |
| sys.path.insert(0, str(Path(__file__).parent)) | |
| # Import the inference API app | |
| from inference_api_app import app | |
| if __name__ == "__main__": | |
| port = int(os.environ.get("PORT", 7860)) | |
| uvicorn.run(app, host="0.0.0.0", port=port) | |