Skip to content

Farhan-Feb/AI_Math_Tutor_Gemini_1.5_Flash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 AI Math Tutor – Solve Math Problems Using Gemini 1.5 Flash + Streamlit

An interactive web app built using Python, Streamlit, and Google's Gemini 1.5 Flash model to solve Grade 6–10 level math problems with step-by-step explanations.


🚀 Overview

In this project, a simple AI-powered math tutor app has been developed using:

  • Google Generative AI (google-generativeai)
  • Streamlit for the frontend
  • Python and dotenv for API integration and environment management

Users can input math problems in natural language and receive clear, detailed solutions from Google's Gemini model.


✨ Features

  • 🧮 Solves arithmetic, algebra, probability, and word problems
  • 📚 Explains steps in a human-readable way
  • 🖼️ Simple and clean web interface using Streamlit
  • 🔒 API key managed via .env file

📸 How It Works

  1. Type your math problem in the text input field.
  2. Click the "Solve" button.
  3. The AI Math Tutor sends the problem to Gemini 1.5 Flash model.
  4. The solution (along with explanation) is shown on screen.

📝 Sample Math Problems Solved

Here are some examples the AI successfully solved with explanations:

  1. Distance Problem:

    Two runners are 48 miles apart when they start running toward each other. The speed of the second runner is 2 mph slower than the speed of the first runner. What is the speed of the first runner if they meet in two hours?

  2. Percentage Population Growth:

    The population of a town increased by 16.66% in 1990 and by 10% in 1991. If the population at the beginning of 1990 was 30,000, what was it at the end of 1991?

  3. Arithmetic Progression (AP):

    Ramkali saved Rs 5 in the first week of a year and then increased her weekly saving by Rs 1.75. If in the nth week, her weekly savings become Rs 20.75, find n.

  4. Unit Conversion & Ratio:

    A baker has 50 pounds of flour and needs to make 100 cupcakes. If each cupcake requires 1/4 cup of flour, and there are 16 cups in a pound, how many cupcakes can the baker make?

  5. Probability:

    Throw a dice 3 times. What's the probability that we get three 6s?


About

A simple AI-powered web app built with Streamlit and Google's Gemini 1.5 Flash model to solve math problems with step-by-step explanations. Enter your question, click "Solve", and get AI-generated solutions instantly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages