File size: 1,516 Bytes
4203551
77205a4
4203551
 
 
 
 
 
 
 
 
 
413ec21
 
 
 
 
 
4d667de
413ec21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: Text Auto Complete [Gpt Neo](https://huggingface.co/EleutherAI/gpt-neo-125M)
emoji: πŸ’»
colorFrom: green
colorTo: green
sdk: streamlit
sdk_version: 1.10.0
app_file: app.py
pinned: false
license: openrail
---

# Text Autocomplete using HuggingFace

Text Autocomplete, or text generation, is a task in which an application can fill in incomplete text or paraphrase.

## Goal

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.

## Deployed app

The app is deployed on Huggingface **Spaces**: [Click here for live demo](https://huggingface.co/spaces/SudhanshuBlaze/text-generation-gpt-neo)

### Project Structure

```bash
Text Generator Project

β”œβ”€β”€ app.py
└── requirements.txt
```

### Project Requirements

- Python3
- git

### Project Steps

- `Step 1`: Cloning the repo

```bash
git clone https://github.com/DigitalProductschool/AI-Makerspace.git
```

- `Step 2`: Changing working directory to HuggingFace/Spaces

```bash
cd AI-Makerspace/HuggingFace/Spaces
```

- `Step 3`: Installing dependencies using pip3

```bash
pip3 install -r requirements.txt
```

- `Step 4`: Running the streamlit web app

```bash
streamlit run app.py
```

#### Now go to http://localhost:8501/ to test out this streamlit web-app