From 0084c654d239e1a9274668b7913c5876bc00dc05 Mon Sep 17 00:00:00 2001 From: Magic <82341152+MagicTheDev@users.noreply.github.com> Date: Thu, 15 Aug 2024 00:04:02 -0500 Subject: [PATCH] initial --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index a1caf4c..4ca30b5 100644 --- a/main.py +++ b/main.py @@ -81,3 +81,9 @@ async def serve_file(file_path: str): return StreamingResponse(converted_image, media_type=f"image/{file_extension}") raise HTTPException(status_code=404, detail="File not found") + + +if __name__ == "__main__": + import uvicorn + + uvicorn.run(app, host="0.0.0.0", port=80)