AI Agent to generate past papers using text-to-text technique
Demo.of.Prototype.Tool.for.Generating.Practice.Papers._.1.mp4
This Streamlit application allows users to generate case studies tailored for the IB Diploma Business Management HL course. By uploading relevant course materials in PDF format, users can generate detailed case studies with open-ended questions and answers that align with IB Diploma Exam standards.
- PDF Upload: Users can upload multiple PDF files containing IB Business Management course materials.
- Text Extraction: The app extracts text from the uploaded PDFs.
- Case Study Generation: Using the Groq API, the app generates a case study with questions and answers based on the extracted text.
- Download Option: Generated case studies can be downloaded as a text file.
- Clone this repository:
git clone https://github.com/your-repo/business-management-case-study-generator.git
- Navigate to the project directory:
cd business-management-case-study-generator
- Create a virtual environment (optional but recommended):
python3 -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
- Install the required Python packages:
pip install -r requirements.txt
- Set up your environment variables:
- Create a
.env
file in the project root. - Add your Groq API key to the
.env
file:
GROQ_API_KEY=your_groq_api_key_here
- Create a
-
Run the Streamlit app:
streamlit run app.py
-
Open your web browser and go to
http://localhost:8501
. -
Upload your PDF files containing the course material.
-
Click on the "Generate Case Study" button to generate the case study.
-
Once generated, you can view the case study directly in the app and download it as a text file.
streamlit
: For building the web app interface.PyPDF2
: For extracting text from PDF files.Groq
: For generating the case studies using AI.
This project is licensed under the CC BY NC License.
For any questions or feedback, please contact Tushar Gupta at [[email protected]].