From 49ef741d4b8e8caa761948b0bb72e775dcd79fe8 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Fri, 5 Aug 2022 03:51:34 +0300 Subject: [PATCH] Prevent Zoom on Input in Web Interface. Document Pip upgrade in Readme - Name /Reload API Controller Reload --- Readme.md | 12 ++++++++++++ src/interface/web/index.html | 1 + src/main.py | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 77039dd1..6eae68bb 100644 --- a/Readme.md +++ b/Readme.md @@ -158,6 +158,18 @@ docker-compose up -d ### Upgrade +### Using Pip +```shell +# To Upgrade To Latest Stable Release +pip install --upgrade khoj-assistant + +# To Upgrade To Latest Pre-Release +pip install --upgrade --pre khoj-assistant + +# To Upgrade To Specific Development Release +pip install -r testpypi khoj-assistant==0.1.5.dev491659577806 +``` + #### Using Docker ``` shell diff --git a/src/interface/web/index.html b/src/interface/web/index.html index 27dcfa57..9a76b677 100644 --- a/src/interface/web/index.html +++ b/src/interface/web/index.html @@ -1,6 +1,7 @@ + Khoj diff --git a/src/main.py b/src/main.py index 75f793a8..0c5facea 100644 --- a/src/main.py +++ b/src/main.py @@ -143,7 +143,7 @@ def search(q: str, n: Optional[int] = 5, t: Optional[SearchType] = None, r: Opti @app.get('/reload') -def regenerate(t: Optional[SearchType] = None): +def reload(t: Optional[SearchType] = None): global model device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu") model = initialize_search(config, regenerate=False, t=t, device=device)