SudhanshuBlaze commited on
Commit
413ec21
Β·
1 Parent(s): 77205a4

Update readme

Browse files
Files changed (4) hide show
  1. .gitattributes +0 -31
  2. README.md +53 -1
  3. app.py +1 -1
  4. requirements.txt +3 -2
.gitattributes DELETED
@@ -1,31 +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
- *.ftz filter=lfs diff=lfs merge=lfs -text
6
- *.gz filter=lfs diff=lfs merge=lfs -text
7
- *.h5 filter=lfs diff=lfs merge=lfs -text
8
- *.joblib filter=lfs diff=lfs merge=lfs -text
9
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
- *.model filter=lfs diff=lfs merge=lfs -text
11
- *.msgpack filter=lfs diff=lfs merge=lfs -text
12
- *.npy filter=lfs diff=lfs merge=lfs -text
13
- *.npz filter=lfs diff=lfs merge=lfs -text
14
- *.onnx filter=lfs diff=lfs merge=lfs -text
15
- *.ot filter=lfs diff=lfs merge=lfs -text
16
- *.parquet filter=lfs diff=lfs merge=lfs -text
17
- *.pickle filter=lfs diff=lfs merge=lfs -text
18
- *.pkl filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pt filter=lfs diff=lfs merge=lfs -text
21
- *.pth filter=lfs diff=lfs merge=lfs -text
22
- *.rar filter=lfs diff=lfs merge=lfs -text
23
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
24
- *.tar.* filter=lfs diff=lfs merge=lfs -text
25
- *.tflite filter=lfs diff=lfs merge=lfs -text
26
- *.tgz filter=lfs diff=lfs merge=lfs -text
27
- *.wasm filter=lfs diff=lfs merge=lfs -text
28
- *.xz filter=lfs diff=lfs merge=lfs -text
29
- *.zip filter=lfs diff=lfs merge=lfs -text
30
- *.zst filter=lfs diff=lfs merge=lfs -text
31
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -10,4 +10,56 @@ pinned: false
10
  license: openrail
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  license: openrail
11
  ---
12
 
13
+ # Text Autocomplete using HuggingFace
14
+
15
+ Text Autocomplete, or text generation, is a task in which an application can fill in incomplete text or paraphrase.
16
+
17
+ ## Goal
18
+
19
+ In this project we are buidling text-autocomplete **streamlit** web-app powered by GPT-neo. GPT-Neo 125M is a transformer model designed using EleutherAI's replication of the GPT-3 architecture. GPT-Neo refers to the class of models, while 125M represents the number of parameters of this particular pre-trained model
20
+
21
+ ## Deployed app
22
+
23
+ The app is deployed on Huggingface **Spaces**: [Click here for live demo](https://huggingface.co/spaces/SudhanshuBlaze/text-generation-gpt-neo)
24
+
25
+ ### Project Structure
26
+
27
+ ```bash
28
+ Text Generator Project
29
+
30
+ β”œβ”€β”€ app.py
31
+ └── requirements.txt
32
+ ```
33
+
34
+ ### Project Requirements
35
+
36
+ - Python3
37
+ - git
38
+
39
+ ### Project Steps
40
+
41
+ - `Step 1`: Cloning the repo
42
+
43
+ ```bash
44
+ git clone https://github.com/DigitalProductschool/AI-Makerspace.git
45
+ ```
46
+
47
+ - `Step 2`: Changing working directory to HuggingFace/Spaces
48
+
49
+ ```bash
50
+ cd AI-Makerspace/HuggingFace/Spaces
51
+ ```
52
+
53
+ - `Step 3`: Installing dependencies using pip3
54
+
55
+ ```bash
56
+ pip3 install -r requirements.txt
57
+ ```
58
+
59
+ - `Step 4`: Running the streamlit web app
60
+
61
+ ```bash
62
+ streamlit run app.py
63
+ ```
64
+
65
+ #### Now go to http://localhost:8501/ to test out this streamlit web-app
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  from transformers import pipeline
3
 
4
  st.title("AI text-gen Web-app")
5
- st.write("This is auto-complete/text generation a web-app powered by GPT-neo. GPT-Neo 125M is a transformer model designed using EleutherAI's replication of the GPT-3 architecture. GPT-Neo refers to the class of models, while 125M represents the number of parameters of this particular pre-trained model.")
6
 
7
  # instantiate the model / download
8
  @st.cache(allow_output_mutation=True)
 
2
  from transformers import pipeline
3
 
4
  st.title("AI text-gen Web-app")
5
+ st.write("This is auto-complete/text generation a web-app powered by GPT-neo. Type some text here and this model will generate more.")
6
 
7
  # instantiate the model / download
8
  @st.cache(allow_output_mutation=True)
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
- torch
2
- transformers
 
 
1
+ torch==1.12.0
2
+ transformers==4.19.4
3
+ streamlit==1.13.0