From 0610d21a2cd11bda643afaa9d92cc125c6653d3e Mon Sep 17 00:00:00 2001 From: Dantenerosas Date: Wed, 20 Sep 2023 15:00:41 +0300 Subject: [PATCH] main file for web --- main_web.py | 1 + src/web/main.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 main_web.py diff --git a/main_web.py b/main_web.py new file mode 100644 index 0000000..dee4bf3 --- /dev/null +++ b/main_web.py @@ -0,0 +1 @@ +import src.web.main \ No newline at end of file diff --git a/src/web/main.py b/src/web/main.py index ff7d8af..eb6db23 100644 --- a/src/web/main.py +++ b/src/web/main.py @@ -93,5 +93,4 @@ async def download_video(file_path): return StreamingResponse(iterfile(), media_type="video/mp4") -if __name__ == '__main__': - uvicorn.run("src.web.main:app", host="localhost", log_level="info") +uvicorn.run("src.web.main:app", host="localhost", log_level="info")