From c95bcce48b38a8a0d98510b061ddad7b990e8f91 Mon Sep 17 00:00:00 2001 From: Sam Wong <45596336+wangyc-pers@users.noreply.github.com> Date: Sat, 7 Sep 2024 02:06:12 +0800 Subject: [PATCH] feat: add root_path parameter and fix .gitignore __pycache__ configuration (#58) 1. Added a base_path parameter to allow users to configure the URL path. 2. Fixed the .gitignore configuration for __pycache__. Co-authored-by: Ze-Yi LIN <58305964+Zeyi-Lin@users.noreply.github.com> --- .gitignore | 6 ++++-- app.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 86c88fea..58489ffb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.pyc -**/__pycache__ +**/__pycache__/ .idea .vscode/* .DS_Store @@ -13,4 +13,6 @@ build *.pt *.onnx test/temp/* -!test/temp/.gitkeep \ No newline at end of file +!test/temp/.gitkeep + +.python-version \ No newline at end of file diff --git a/app.py b/app.py index b2ed4abf..316ff656 100644 --- a/app.py +++ b/app.py @@ -643,4 +643,4 @@ def change_image_kb(image_kb_option): show_api=False, favicon_path=os.path.join(root_dir, "assets/hivision_logo.png"), root_path=args.root_path, - ) + ) \ No newline at end of file