File size: 2,089 Bytes
8e8b967
 
 
 
 
 
a14424d
8e8b967
 
 
 
 
22f7204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
title: Paraphrase Type Generation
emoji: πŸ‘€
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 4.37.2
app_file: app.py
pinned: false
license: mit
---

# Paraphrase Generator with OpenAI and Gradio

This is a simple demo of a paraphrase generator using OpenAI's GPT-3 model and Gradio for the user interface. The application allows the user to input a sentence and select a type of paraphrase. The application then generates a paraphrase of the input sentence based on the selected type.

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

### Prerequisites

You need Python 3.7 or later to run the application. You can have multiple Python versions (2.x and 3.x) installed on the same system without problems.

In Ubuntu, Mint and Debian you can install Python 3 like this:

```
$ sudo apt-get install python3 python3-pip
```

For other Linux flavors, macOS and Windows, packages are available at

https://www.python.org/getit/

### Quick Start

Clone the repository:

```
$ git clone https://github.com/<your-github-username>/paraphrase-generator.git
$ cd paraphrase-generator
```

Install the requirements:

```
$ pip install -r requirements.txt
```

Run the application:

```
$ python app.py
```

## How to Use

1. Enter a sentence in the text box.
2. Select a type of paraphrase from the dropdown menu.
3. Click the "Submit" button.
4. The application will generate a paraphrase of the input sentence based on the selected type.

## Built With

* [Python](https://www.python.org/) - The programming language used.
* [Gradio](https://www.gradio.app/) - For creating the user interface.
* [OpenAI](https://www.openai.com/) - Used to generate the paraphrases.

## Authors

* **Jan Philip Wahle** - *Initial work* - [Your Github Username](https://github.com/<your-github-username>)

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

* Hat tip to anyone whose code was used
* Inspiration
* etc
```