This project is a web-based application developed using Streamlit, Python, and OpenAI's GPT-4 API. It provides various features to help with text manipulation, including rewriting, extending, summarizing, fixing grammar, debugging code, and optimizing code. Additionally, users can download the processed content in various formats such as TXT, PDF, and DOCX.
Text Manipulation: Users can select from various tasks:
Text Output: After processing, the application displays the result in a styled output box.
Download Options: Users can download the processed output in the following formats:
Clipboard Copy: Users can copy the processed text to their clipboard with a button click.
Clone this repository to your local machine:
git clone https://github.com/wprashed/gpt.git
Install the required Python dependencies:
pip install -r requirements.txt
Ensure that you have an OpenAI API key. You can obtain one by creating an account on OpenAI.
Replace the OpenAI API key in the script:
openai.api_key = "your-api-key"
Run the Streamlit application:
streamlit run app.py
Open the application in your browser. The web app will display options to:
OpenAI API Integration:
The application communicates with OpenAI's GPT-4 model to process the user's input based on the selected task.
Text Processing Functions:
Each text manipulation task (e.g., rewrite, extend, summarize, etc.) has its own function that sends the user's input to the OpenAI API and returns the response.
Output Display:
The processed text is displayed in a styled output box, and users can download or copy the result.
Downloadable Files:
The text can be exported as:
fpdf
library.python-docx
library.User Interface:
The interface is built using Streamlit, with custom CSS for styling.
app.py
: Main application script.requirements.txt
: List of dependencies required to run the application.This project is open-source and available under the MIT License. See the LICENSE file for more information.
There are no datasets linked
There are no models linked
There are no models linked
There are no datasets linked