Effortlessly generate multiple-choice questions (MCQs) with the power of AI using the ChatGPT-3.5-turbo model.
The ChatGPT MCQ Generator is a modular project developed to generate multiple-choice questions based on user inputs and subject-specific data. Leveraging the OpenAI API, specifically the chatGPT-3.5-turbo model, along with Langchain and Streamlit UI, this project utilizes advanced natural language processing capabilities to analyze input data and generate relevant MCQs. The generated MCQs are presented in a user-friendly table format using Streamlit. Additionally, the project is deployed on AWS EC2 for seamless accessibility and scalability.
- Login to AWS: Access the AWS Management Console at https://aws.amazon.com/console/.
- Launch EC2 Instance: Search for EC2 and configure an Ubuntu machine.
- Update the Machine:
sudo apt update sudo apt-get update sudo apt upgrade -y sudo apt install git curl unzip tar make sudo vim wget -y
- Clone Repository:
git clone https://github.com/send2manoo/ChatGPT-MCQ-Generator.git
- Install Dependencies:
sudo apt install python3-pip pip3 install -r requirements.txt
- Run Streamlit App:
python3 -m streamlit run StreamlitAPP.py
- Add OpenAI API Key (Optional):
- Create a
.envfile in your server:touch .env - Edit the
.envfile:vi .env - Copy your API key and paste it into the
.envfile. - Save and exit the editor: Press
Esc, then:wq, and hitEnter.
- Create a
- Configure Security:
- Navigate to security settings and add an inbound rule for port 8501.
This README provides a comprehensive guide for setting up and running the ChatGPT MCQ Generator project on an AWS EC2 instance. For more details on the project, including its features and usage, refer to the project documentation and codebase.