mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Prevent Zoom on Input in Web Interface. Document Pip upgrade in Readme
- Name /Reload API Controller Reload
This commit is contained in:
parent
675e821d95
commit
49ef741d4b
3 changed files with 14 additions and 1 deletions
12
Readme.md
12
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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0">
|
||||
<title>Khoj</title>
|
||||
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 144 144%22><text y=%22.86em%22 font-size=%22144%22>🦅</text></svg>">
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue