File size: 1,378 Bytes
9da33d2
94ae908
 
 
 
 
 
 
 
 
 
 
9da33d2
cec2c05
 
9da33d2
 
cec2c05
 
 
9da33d2
 
cec2c05
 
9da33d2
 
 
 
 
53d0d7c
9da33d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!-- ---
title: Talk To Your Docs
emoji: πŸ“š
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 3.42.0
app_file: app.py
pinned: false
license: apache-2.0
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference -->


### For users
You can use this app via Hugging Face where it is already deployed:<br/>
https://huggingface.co/spaces/arslan-ahmed/talk-to-your-docs


### For developers
Source code:<br/>
https://huggingface.co/spaces/arslan-ahmed/talk-to-your-docs/tree/main

You can develop and deploy your own personal chatbot (similar to https://huggingface.co/spaces/arslan-ahmed/talk-to-arslan), with the following three commands:


docker pull arslan2k12/ttyd_base (https://hub.docker.com/r/arslan2k12/ttyd_base) <br/>
docker pull arslan2k12/arslanbot (https://hub.docker.com/r/arslan2k12/arslanbot)<br/>
docker run --rm -d -p 7860:7860 --env-file ./.env arslan2k12/arslanbot


Contents of `.env` file:
```
TTYD_MODE=personalBot_john
#replace john with your name - use only small alphabets, no special characters

GDRIVE_FOLDER_URL=https://drive.google.com/drive/folders/1ce1n1kleS1FOotdcu5joXeSRu_xnHjDt
# replace with your Google Drive folder URL - make sure this folder is publically accessible (everyone with the link)

OPENAI_API_KEY=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
# your OpenAI API Key.
```