--- 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-4o-mini 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//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/jpwahle) ## 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 ```