How gausampada/ai-model works
Project type and purpose
• This is a backend-only RESTful API service written in Python using Flask.
• Its purpose is to expose endpoints that accept text or images of Indian indigenous cow breeds, forward them to Google’s Gemini AI models, and return breed information or health-related observations.
File structure
• Top-level files:
• app.py – Defines Flask routes (/ , /image_to_text, /text_to_text, /text_to_text_chat)
• breed_info.py – Encapsulates static or curated text-based data and logic for returning breed details
• cow_breed_api.py – Wraps calls to Google Gemini AI (construct prompts, call the external API, handle responses)
• requirements.txt – Flask, google-cloud libs, other dependencies
• README.md, .gitignore
• No database or persistent storage is present—this is a stateless, serverless-style API layer.
README for additional insights
• Uses environment variable GOOGLE_API_KEY to authenticate with Google Gemini.
• Emphasizes three main functional flows:
a. Image Analysis
b. Text Query
c. Chat-based Interaction