From 911d32cdab0833432795ade68a31c722a83e00cf 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")