File size: 4,399 Bytes
cfe3c30
119408d
fc72d49
119408d
 
 
cfe3c30
 
 
 
b6ada5c
 
 
 
 
 
f61e3ae
 
cfe3c30
 
b6ada5c
119408d
b6ada5c
 
119408d
b6ada5c
 
119408d
b6ada5c
 
a12a536
b6ada5c
a12a536
119408d
a12a536
 
 
119408d
b6ada5c
 
97e4654
fc72d49
a12a536
fc72d49
a12a536
 
 
 
fc72d49
a12a536
 
 
 
 
fc72d49
a12a536
 
 
 
fc72d49
a12a536
fc72d49
97e4654
fc72d49
a12a536
 
 
 
 
 
b6ada5c
 
 
 
 
 
 
 
 
 
 
 
 
119408d
fc72d49
119408d
b6ada5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5fd80d1
 
d0d5974
b6ada5c
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
title: AnatomyBot - MBBS Anatomy Tutor
hackathon: https://huggingface.co/MCP-1st-Birthday
emoji: 🩺
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 6.0.0
app_file: app.py
pinned: false
license: mit
short_description: AnatomyBot - Interactive AI-powered MBBS anatomy tutor.
tags:
  - building-mcp-track-enterprise
  - building-mcp-track-customer
  - building-mcp-track-creative
  - mcp-in-action-track-creative
  - mcp-in-action-track-consumer
---

# 🩺 AnatomyBot – MBBS Anatomy Tutor

Welcome to our submission for the **Hugging Face MCP 1st Birthday Hackathon**!  
This project showcases **an intelligent multi-agent educational system** powered by **Gradio**, designed to revolutionize how medical students learn anatomy through **visuals, voice interaction, and active recall**.

**Link to demo:** [https://huggingface.co/spaces/gladguy/SimpleProject](https://huggingface.co/spaces/gladguy/SimpleProject)  
**YouTube Video:** [https://www.youtube.com/watch?v=5L5suQMTd5I](https://www.youtube.com/watch?v=5L5suQMTd5I)

---

## πŸ“ What I want to showcase

I want to showcase an intelligent, interactive educational platform designed specifically for MBBS (medical) students. The goal is to bridge the gap between static textbooks and active learning by providing:

-   **Visual & Contextual Learning**: Instantly fetching relevant anatomical diagrams alongside AI-generated educational summaries.
-   **Active Recall & Simulation**: A "VIVA Mode" that simulates an oral anatomy exam with a strict but fair AI professor, complete with voice interaction.
-   **Resource Augmentation**: A "Book Mode" that allows students to upload their own textbooks and get AI-powered analysis and quiz questions for specific pages.

---

## πŸ› οΈ  What I've built so far

I have built a fully functional **Gradio** web application that integrates multiple powerful AI services:

### 1. Smart Query Engine
*   Uses **Hyperbolic AI (Llama 3.3 70B)** to validate if questions are strictly anatomy-related.
*   Fetches high-quality diagrams using **SERPAPI (Google Images)**, filtering out non-diagrammatic results.
*   Generates structured, emoji-rich educational content (Location, Features, Clinical Significance).

### 2. VIVA Training Mode
*   Simulates a real oral exam environment.
*   Generates progressive questions (from basic relations to clinical scenarios).
*   **Voice Interaction**: Uses **ElevenLabs** to vocalize questions, making the experience immersive.
*   **AI Evaluation**: Grades student answers (Distinction, Pass, Borderline, Fail) and provides detailed feedback with reference answers.

### 3. Book Learning Mode
*   Allows PDF textbook uploads.
*   Extracts and displays specific pages.
*   Analyzes page content to generate summaries, clinical points, and self-test questions.

---

## πŸ’» Tech Stack

*   **Frontend/UI**: Gradio (Python)
*   **LLM Intelligence**: Hyperbolic AI API (Meta Llama 3.3 70B Instruct)
*   **Image Search**: SERPAPI (Google Images Engine)
*   **Voice Synthesis**: ElevenLabs API (Text-to-Speech)
*   **Image/PDF Processing**: Pillow, PyPDF2, pdf2image
*   **Environment**: Python, Hugging Face Spaces

---

## πŸ”— Quick Links

- πŸ† **Hackathon:** [MCP 1st Birthday Hackathon](https://huggingface.co/MCP-1st-Birthday)
- πŸ“Ί **YouTube Demo:** [Watch Video](https://www.youtube.com/watch?v=5L5suQMTd5I)
- πŸš€ **Live Demo:** [Try AnatomyBot](https://huggingface.co/spaces/gladguy/SimpleProject)
- πŸ’Ό **LinkedIn Post:** [View Post](https://www.linkedin.com/posts/gladguy_learn-anatomy-with-ai-activity-7400990572884168705-14Ln/)

---

## πŸ› οΈ Installation & Setup

### Prerequisites
- Python 3.8 or higher
- API Keys for SERPAPI, Hyperbolic, and ElevenLabs.

### Steps
1.  Clone the repository:
    ```bash
    git clone https://huggingface.co/spaces/gladguy/SimpleProject
    cd SimpleProject
    ```
2.  Install dependencies:
    ```bash
    pip install -r requirements.txt
    ```
3.  Set up your `.env` file:
    ```bash
    SERPAPI_KEY=your_key
    HYPERBOLIC_API_KEY=your_key
    ELEVENLABS_API_KEY=your_key
    ```
4.  Run the app:
    ```bash
    python app.py or uv run app.py
    ```

---

## πŸ§‘β€πŸ’» Authors

-   **Waheed** – *Lead Developer & AI Architect*
-   **HF Username** : gladguy
-   **Profile :** https://huggingface.co/spaces/gladguy


---

## πŸ“ License

This project is licensed under the MIT License.