Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

102 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz AI Project

This is a Flask-based web application that allows users to upload PDFs and generate AI-powered quizzes from the extracted text.


Getting Started

1️. Clone the Repository

git clone https://github.com/MH221B/AI-Project.git
cd AI-Project

2️. Set Up a Virtual Environment

Option 1: Using command line

python -m venv .venv
source .venv/bin/activate  # On macOS/Linux
# OR
.venv\Scripts\activate     # On Windows

Option 2: Using VS Code

  1. Press Ctrl + Shift + P (or Cmd + Shift + P on macOS).
  2. Search for "Python: Create Environment" and select it.
  3. Select your Python interpreter.
  4. Choose "venv" as the environment type.
  5. Activate the environment when prompted.

3️. Install Dependencies

pip install -r requirements.txt

4. Set Up Environment Variables

Create a .env file and add any necessary configurations (to be decided).

5️. Run the Application

python run.py

Visit: http://127.0.0.1:5000


Project Structure

quiz_ai_project/
├── app/                    # Main application folder
│   ├── __init__.py         # Initializes Flask app
│   ├── controllers/        # Handles routes and requests
│   │   ├── .gitkeep
│   ├── services/           # Business logic (e.g., AI processing)
│   │   ├── .gitkeep
│   ├── static/             # CSS, JavaScript, images
│   │   ├── .gitkeep
│   ├── templates/          # HTML templates (Jinja2)
│   │   ├── index.html      # Home page
├── uploads/                # Stores uploaded PDFs
│   ├── .gitkeep
├── .env                    # Environment variables
├── .gitignore              # Files to ignore in Git
├── requirements.txt        # Required Python packages
├── run.py                  # Main entry point
└── README.md               # Project documentation

Features

  • Upload PDF files
  • Extract texts and images from PDFs
  • Generate AI-powered quiz questions
  • Display quizzes in an interactive UI

License

This project is open-source under the MIT License.


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages