LexiVerse is a Flask application that leverages OpenAI's API to generate creative content based on user prompts. It is designed to assist with generating marketing emails, blog posts, tweets, ad copy, and product descriptions in a friendly yet professional tone.
- Generate creative content based on user prompts
- Tailor writing style to user-specified audience
- Avoid harmful, hateful, or copyrighted content
- Configurable parameters for content generation
- Clone the repository:
git clone https://github.com/ShivamGoyal03/LexiVerse.git cd LexiVerse - Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install the dependencies:
pip install -r requirements.txt
- Set up environment variables in a
.envfile:OPENAI_API_KEY=your_openai_api_key OPENAI_ENDPOINT=your_openai_endpoint CHAT_COMPLETIONS_DEPLOYMENT_NAME=your_deployment_name TEMPERATURE=0.7 MAX_TOKENS=150 PRESENCE_PENALTY=0.6 FREQUENCY_PENALTY=0.0 TOP_P=1.0 N_VAR=1
- Run the Flask application:
flask run
- Open your web browser and navigate to
http://127.0.0.1:5000. - Enter your prompt in the text area and click "Generate" to receive the generated content.
OPENAI_API_KEY: Your OpenAI API keyOPENAI_ENDPOINT: Your OpenAI API endpointCHAT_COMPLETIONS_DEPLOYMENT_NAME: Deployment name for chat completionsTEMPERATURE: Sampling temperature for content generationMAX_TOKENS: Maximum number of tokens to generatePRESENCE_PENALTY: Presence penalty for content generationFREQUENCY_PENALTY: Frequency penalty for content generationTOP_P: Top-p sampling parameterN_VAR: Number of completions to generate
The application is configured to run on Vercel. The vercel.json file specifies the build and routing configuration.
This project is licensed under the MIT License. See the LICENSE file for details.
