PowerText Lite is a Streamlit application that generates product descriptions using OpenAI's GPT-4 model. It takes an Excel file with product data as input and produces high-quality, AI-generated product descriptions.
- Upload an Excel file containing product data.
- Select the columns to include in the product descriptions.
- Choose the language for the descriptions.
- Specify the minimum and maximum word count for the descriptions.
- Customize the AI's output with additional copywriting guidelines.
- Download the generated product descriptions in an Excel file.
- Python 3.11 or later
- Streamlit
- pandas
- openai
-
Clone the repository:
git clone https://github.com/sfeddahi/PowerText-Lite.git cd PowerText-Lite
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
To run the application, you need to ensure that the Streamlit executable is accessible from your command line. This is where Streamlit sometimes gets a little fuzzy with windows machines, the most simple way to achieve this is by adding the directory containing the Streamlit executable to your system's PATH. This can be done by running the following command:
Windows PowerShell:
$Env:PATH += ";C:\path\to\your\python\Scripts"
streamlit run "path\to\your\repository\app.py"
Note: Replace C:\path\to\your\python\Scripts
with the actual path to your Python Scripts directory and path\to\your\repository\app.py
with the actual path to your app.py
file. The directory path will vary depending on your Python installation location.
For example:
$Env:PATH += ";C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python311\Scripts"
streamlit run "C:\path\to\PowerText-Lite\app.py"
You will need an OpenAI API key to use this application. You can obtain your API key from the OpenAI website. Once you have your API key, you can enter it in the application when prompted.
-
Start the Streamlit application:
streamlit run "C:\path\to\PowerText-Lite\app.py"
-
Open your web browser and go to the URL provided by Streamlit (usually
http://localhost:8501
). -
Log in using the password you created, the standard password is
boterkoek
but you can obviously change it. Any real-life applications would of course require more secure authentication measures. -
Enter your OpenAI API key.
-
Upload your Excel file, select the desired columns, configure the AI settings with your own copy/brand guidelines, and generate the product descriptions.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
- Streamlit for the easy-to-use web app framework, if you're coming from using flask like me it's really a gamechanger in terms of intuitiveness and look-and-feel.
- OpenAI for providing the GPT-4 model.