Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse filesFiles changed (2)
- Dockerfile+3-3
- server/app.py+2-2
71 unmodified lines7273747576777879808171 unmodified linesENV PYTHONPATH="/app/env:$PYTHONPATH"# Health checkHEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \CMD curl -f http://localhost:7860/health || exit 1# Run the FastAPI server# The module path is constructed to work with the /app/env structureENV ENABLE_WEB_INTERFACE=trueCMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 7860"]71 unmodified lines7273747576777879808171 unmodified linesENV PYTHONPATH="/app/env:$PYTHONPATH"# Health checkHEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \CMD curl -f http://localhost:8000/health || exit 1# Run the FastAPI server# The module path is constructed to work with the /app/env structureENV ENABLE_WEB_INTERFACE=trueCMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
22 unmodified lines232425262728292 unmodified lines32333435363722 unmodified lines)def main(host: str = "0.0.0.0", port: int = 7860):"""Entry point for direct execution."""import uvicornuvicorn.run(app, host=host, port=port)2 unmodified linesif __name__ == "__main__":import argparseparser = argparse.ArgumentParser()parser.add_argument("--port", type=int, default=7860)args = parser.parse_args()main(port=args.port)22 unmodified lines232425262728292 unmodified lines32333435363722 unmodified lines)def main(host: str = "0.0.0.0", port: int = 8000):"""Entry point for direct execution."""import uvicornuvicorn.run(app, host=host, port=port)2 unmodified linesif __name__ == "__main__":import argparseparser = argparse.ArgumentParser()parser.add_argument("--port", type=int, default=8000)args = parser.parse_args()main(port=args.port)
Dockerfile+3-3
server/app.py+2-2