| import os | |
| import sys | |
| import uvicorn | |
| # Add the parent directory to sys.path so 'inference.py' can be imported and env modules | |
| sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from inference import app | |
| def main(): | |
| uvicorn.run("server.app:app", host="0.0.0.0", port=7860) | |
| if __name__ == "__main__": | |
| main() | |