AraQuiz is an Arabic adaptive quiz application built using Streamlit and Google Generative AI GEMINI, designed to generate multiple-choice questions (MCQs) in Arabic across various categories. The app includes user authentication, a leaderboard, and adaptive difficulty levels based on user performance.
- User Authentication: Users can sign up and log in to save their progress and compete on the leaderboard.
- Category Selection: Users can choose from categories like Science, Literature, Religion, Geography, and History.
- Adaptive Difficulty: The difficulty level adjusts based on the user's performance (streak of correct answers).
- Leaderboard: Displays the top users based on their scores.
- Arabic MCQs: Generates multiple-choice questions in Arabic using Google Generative AI.
- Streamlit: For the front-end interface.
- SQLite: To store user information and scores.
- Google Generative AI: For generating Arabic multiple-choice questions.
-
Clone the repository:
git clone https://github.com/yourusername/araquiz-app.git cd araquiz-app
-
Install the required packages:
Ensure you have Python installed, then run:
pip install -r requirements.txt
-
Set up the API Key:
Create a
.env
file in the root directory of your project and add your Google Generative AI API key:export API_KEY= your_google_api_key_here
-
Run the application:
streamlit run app.py
- Sign Up/Login: New users can sign up, and returning users can log in to start or continue a quiz.
- Select a Category: Choose a quiz category from the sidebar.
- Answer Questions: Questions will be displayed one by one. Choose the correct answer to score points.
- Leaderboard: Check the top scores on the leaderboard page.