jpwahle's picture
Update README.md
c7e933a verified
|
raw
history blame
2.08 kB
metadata
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/<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 - The programming language used.
  • Gradio - For creating the user interface.
  • OpenAI - Used to generate the paraphrases.

Authors

License

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

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc