File size: 2,532 Bytes
5137ec1
b0dba10
 
 
 
 
 
 
5137ec1
191f903
b0dba10
5137ec1
 
9914df1
70a0777
220b14b
19ef707
c52edc4
63a3038
c52edc4
 
220b14b
 
 
 
 
63a3038
 
 
220b14b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d38e3b2
 
 
220b14b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: 'MediAgent AI: Your Conversational Health Navigator'
emoji: 🧬
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: false
secrets:
- MODAL_BACKEND_URL
---

# 🧬 MediAgent AI: Your Conversational Health Navigator

**MediAgent AI** is a sophisticated, conversational health assistant designed to provide reliable, sourced, and easy-to-understand answers to a wide range of medical questions.

This application is built with a decoupled architecture: a modern Gradio UI hosted on Hugging Face Spaces and a powerful, serverless GPU backend running on [Modal](https://modal.com).

## 🚀 Key Features

- 🌐 **Multilingual Support**: Automatically detects and responds in English, French, Spanish, and Hindi.
- 💬 **Conversational & Stateful**: Remembers the chat history to understand follow-up questions.
- 👤 **Role-Based Adaptation**: Tailors its language and the tools it uses based on whether you select **Patient** or **Doctor**.
- 🛠️ **Multi-Tool Capability**: Uses a powerful toolkit to search the web, PubMed, clinical trials, and drug databases to find the best answer.
- 🛡️ **Safety First**: Includes a critical safety layer to detect potential emergencies and provide appropriate disclaimers.

---

## 🧪 Try It In Your Language!

Copy and paste one of the examples below to test the AI's multilingual capabilities.

### English

What are the most common side effects of metformin?

### Spanish

Cuáles son los síntomas de la diabetes tipo 2?

### French

Comment savoir si j'ai la grippe ou un simple rhume ?

### Hindi

उच्च रक्तचाप के लिए घरेलू उपचार क्या हैं?

---

## 🧑‍⚕️ See The Role-Based Difference

Select a role in the UI and use a matching prompt below to see how the AI adapts its response.

### For the Patient Role

Select **patient** and ask a general health question. The AI will use web search to provide an easy-to-understand overview.

What are the most common side effects I should watch out for with lisinopril?

### For the Doctor Role

Select **doctor** and ask a technical, multi-part question. The AI will use specialized tools like PubMed and ClinicalTrials.gov to provide a detailed, sourced answer.

My patient with Crohn's is on methotrexate and we are considering adding infliximab. I need the latest PubMed literature on efficacy, a check for interactions between the two drugs, and a list of ongoing clinical trials for novel biologics in IBD.