Welcome to the Prompt Generator! This Streamlit application allows users to generate customized prompts for ChatGPT (GPT-3, GPT-4) and other similar models. The app provides a user-friendly interface to input parameters and generate detailed prompts based on user specifications.
- Generate custom prompts for ChatGPT.
- Set model parameters such as temperature and maximum length.
- Input fields for persona, task, and format.
- Reset session state to clear inputs.
- Sidebar with model details and creator information.
To run this application locally, follow these steps:
-
Clone the repository:
git clone https://github.com/WilliamSMendes/prompt-generator.git cd prompt-generator
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your environment variables:
Create a
.streamlit/secrets.toml
file in the root directory of your project and add your MISTRAL API key:[general] MISTRAL_API_KEY = "your_api_key_here"
To start the Streamlit application, run:
streamlit run main.py
This will launch the application in your default web browser.
The application uses the Streamlit secrets management system to securely manage your API key. Ensure your MISTRAL_API_KEY
is set in the .streamlit/secrets.toml
file.
We welcome contributions! Please see CONTRIBUTING.md
for details on how to get started.
If you find a bug, please open an issue with the following details:
- A clear and descriptive title.
- A detailed description of the problem.
- Steps to reproduce the issue.
- Any relevant logs, screenshots, or error messages.
If you have an idea for an enhancement, please open an issue with:
- A clear and descriptive title.
- A detailed description of the enhancement.
- The reasons why this enhancement would be useful.
- Any relevant examples or mockups.
If you want to contribute code, please follow these steps:
-
Fork the repository: Click on the "Fork" button at the top of the repository page to create a copy of the repository in your GitHub account.
-
Clone your fork:
git clone https://github.com/yourusername/prompt-generator.git cd prompt-generator
-
Create a branch:
git checkout -b feature/your-feature-name
-
Make changes: Make your changes in the new branch. Ensure your code follows the project's coding standards.
-
Commit changes:
git add . git commit -m "Add a concise commit message describing your changes"
-
Push changes:
git push origin feature/your-feature-name
-
Create a Pull Request: Go to the original repository and click on the "New Pull Request" button. Provide a detailed description of your changes and why they should be merged.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for using the Prompt Generator! We hope it helps you create effective and detailed prompts for your AI tasks. If you have any questions or feedback, please open an issue or contact the creators directly. Happy prompting! 🎉
Feel free to customize this README.md
to better match your project's specific details and requirements.