This app generates programming exercises based on difficulty levels, using ChatGPT to provide personalized content. Users can select the number of exercises for each difficulty level, making it easy to practice and learn.
The app is 100% functional and can be accessed by clicking the badge below:
- Python 3.10+
- Dependencies listed in requirements.txt
Follow the steps below to install and run the app:
-
Clone the Repository
git clone https://github.com/92username/learn-chatbox-gpt.git cd learn-chatbox-gpt
-
Create and Activate a Virtual Environment
Linux or macOS:
python3 -m venv venv source venv/bin/activate
Windows:
python -m venv venv venv\Scripts\activate
-
Install the Dependencies
pip install -r requirements.txt
-
Run the App
To run the app, use the command:
streamlit run form.py
This will open the app in your browser (localhost).
-
Generating Exercises
Select the programming language, specific topic (e.g., lists, functions), and set the number of exercises for each difficulty level. The app will then generate exercises based on your selections.
To run the app locally, you need to provide an OpenAI API key.
-
Set up your OpenAI API key as an environment variable:
export OPENAI_API_KEY='your_openai_api_key'
-
Follow the installation and usage instructions above.
I am working on hosting this webapp on a VPS at Hostinger.
- Provided APIKEY for free use
- Provide link for direct access
Contributions are welcome! Feel free to open issues or submit pull requests.