rajat-tech-002 commited on
Commit
c491157
β€’
1 Parent(s): 22313f6

Initial Add

Browse files
Files changed (3) hide show
  1. .gitattributes +0 -34
  2. README.md +11 -52
  3. data.pth +0 -0
.gitattributes DELETED
@@ -1,34 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tflite filter=lfs diff=lfs merge=lfs -text
29
- *.tgz filter=lfs diff=lfs merge=lfs -text
30
- *.wasm filter=lfs diff=lfs merge=lfs -text
31
- *.xz filter=lfs diff=lfs merge=lfs -text
32
- *.zip filter=lfs diff=lfs merge=lfs -text
33
- *.zst filter=lfs diff=lfs merge=lfs -text
34
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,52 +1,11 @@
1
- # Chatbot Deployment with Flask and JavaScript
2
-
3
- In this tutorial we deploy the chatbot I created in [this](https://github.com/python-engineer/pytorch-chatbot) tutorial with Flask and JavaScript.
4
-
5
- This gives 2 deployment options:
6
- - Deploy within Flask app with jinja2 template
7
- - Serve only the Flask prediction API. The used html and javascript files can be included in any Frontend application (with only a slight modification) and can run completely separate from the Flask App then.
8
-
9
- ## Initial Setup:
10
- This repo currently contains the starter files.
11
-
12
- Clone repo and create a virtual environment
13
- ```
14
- $ git clone https://github.com/python-engineer/chatbot-deployment.git
15
- $ cd chatbot-deployment
16
- $ python3 -m venv venv
17
- $ . venv/bin/activate
18
- ```
19
- Install dependencies
20
- ```
21
- $ (venv) pip install Flask torch torchvision nltk
22
- ```
23
- Install nltk package
24
- ```
25
- $ (venv) python
26
- >>> import nltk
27
- >>> nltk.download('punkt')
28
- ```
29
- Modify `intents.json` with different intents and responses for your Chatbot
30
-
31
- Run
32
- ```
33
- $ (venv) python train.py
34
- ```
35
- This will dump data.pth file. And then run
36
- the following command to test it in the console.
37
- ```
38
- $ (venv) python chat.py
39
- ```
40
-
41
- Now for deployment follow my tutorial to implement `app.py` and `app.js`.
42
-
43
- ## Watch the Tutorial
44
- [![Alt text](https://img.youtube.com/vi/a37BL0stIuM/hqdefault.jpg)](https://youtu.be/a37BL0stIuM)
45
- [https://youtu.be/a37BL0stIuM](https://youtu.be/a37BL0stIuM)
46
-
47
- ## Note
48
- In the video we implement the first approach using jinja2 templates within our Flask app. Only slight modifications are needed to run the frontend separately. I put the final frontend code for a standalone frontend application in the [standalone-frontend](/standalone-frontend) folder.
49
-
50
- ## Credits:
51
- This repo was used for the frontend code:
52
- https://github.com/hitchcliff/front-end-chatjs
 
1
+ ---
2
+ title: Personal Bot
3
+ emoji: πŸ‘€
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: docker
7
+ pinned: false
8
+ license: apache-2.0
9
+ ---
10
+
11
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data.pth CHANGED
Binary files a/data.pth and b/data.pth differ