Skip to content

92username/learn-chatbox-gpt

Repository files navigation

CI Workflow Pylint

README.md

GPT Exercise Generator

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.

Access the App

The app is 100% functional and can be accessed by clicking the badge below:

Hostinger

Requirements

  • Python 3.10+
  • Dependencies listed in requirements.txt

Installation and Usage

Follow the steps below to install and run the app:

  1. Clone the Repository

    git clone https://github.com/92username/learn-chatbox-gpt.git
    cd learn-chatbox-gpt
  2. 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
  3. Install the Dependencies

    pip install -r requirements.txt
  4. Run the App

    To run the app, use the command:

    streamlit run form.py

    This will open the app in your browser (localhost).

    Main Screen

  5. 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.

Run Locally

To run the app locally, you need to provide an OpenAI API key.

  1. Set up your OpenAI API key as an environment variable:

    export OPENAI_API_KEY='your_openai_api_key'
  2. Follow the installation and usage instructions above.

Hosting

I am working on hosting this webapp on a VPS at Hostinger.

  • Provided APIKEY for free use
  • Provide link for direct access

Contributions

Contributions are welcome! Feel free to open issues or submit pull requests.

Useful Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published