Coding Challenge Generator is a Streamlit-based application that creates customized coding problems to help users practice and improve their programming skills. It uses advanced language models to generate challenges tailored to specific programming languages, difficulty levels, and problem types.
- Interactive chat interface for requesting and receiving coding challenges
- Support for multiple AI models (OpenAI and Ollama)
- Customizable challenge parameters:
- Programming language
- Difficulty level
- Challenge type
- Conversation saving and loading functionality
- Token usage tracking
- Dark/Light theme options
-
Clone this repository:
git clone https://github.com/lalomorales22/CodingChallengeGenerator-Streamlit100.git cd coding-challenge-generator -
Install the required dependencies:
pip install -r requirements.txt -
Set up your OpenAI API key:
- Create a
.envfile in the project root - Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Create a
-
Run the Streamlit app:
streamlit run app.py -
Open your web browser and go to
http://localhost:8501 -
Enter your name and configure your challenge preferences in the sidebar
-
Start requesting coding challenges and interacting with the AI!
- Modify the
PROGRAMMING_LANGUAGES,DIFFICULTY_LEVELS, andCHALLENGE_TYPESlists inapp.pyto add or remove options - Adjust the
custom_instructionsin the sidebar to change the AI's behavior and focus
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.