File size: 3,561 Bytes
0ae6334
b550a96
fa3daba
 
 
0ae6334
fa3daba
0ae6334
b550a96
fa3daba
 
 
b550a96
 
9ceda7c
b550a96
9ceda7c
 
0ae6334
b550a96
0ae6334
b550a96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: HyBio Agent ๐ŸŒฟ๐Ÿ’Š
emoji: ๐ŸŒฟ
colorFrom: pink
colorTo: pink
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: true
license: apache-2.0
short_description: Agent that helps you with natural treatment
tags:
- agents
- web-search
- plants
- medical
thumbnail: >-
  https://huggingface.co/spaces/XMMR12/HyBio-Agent/resolve/main/thumbnail.png
---
# ๐ŸŒฟ HyBio Agent - Natural Treatment Assistant

HyBio Agent is an AI-powered botanist assistant that analyzes health symptoms and provides evidence-based natural treatment recommendations using medicinal plants. This interactive tool combines traditional botanical knowledge with modern AI to deliver personalized plant-based remedies.

## Features

- **Symptom Analysis**: Understands natural language descriptions of health conditions
- **Plant-Based Recommendations**: Suggests medicinal plants with therapeutic properties
- **Treatment Plans**: Provides dosage instructions and application methods
- **Comprehensive Database**: Matches symptoms to scientifically-backed plant remedies
- **User-Friendly Interface**: Simple chat-based interaction with example prompts

## How It Works

```mermaid
graph TD
    A[User Input] --> B(Symptom Analysis)
    B --> C{Symptom Detection}
    C -->|Symptoms Found| D[Plant Database Lookup]
    C -->|No Symptoms| E[General Botanist Advice]
    D --> F[Treatment Plan Generation]
    F --> G[Personalized Recommendations]
    G --> H[Output to User]
```
## Usage Guide

### How to Use
- **Describe your symptoms** in natural language  
  *(e.g., "I have a headache and nausea")*
- **Receive AI-analyzed** plant-based treatment recommendations
- **Explore** dosage instructions and application methods
- **Ask follow-up questions** about specific plants or treatments

### Try These Examples:
> - "What helps with anxiety and insomnia?"  
> - "Natural remedies for skin burns"  
> - "Plant-based solutions for digestive issues"

---

## Video
[![HyBio App Screenshot](https://huggingface.co/spaces/Agents-MCP-Hackathon/HyBio-Agent/resolve/f107f09315404590608a4debed83e8285c9c6ab1/image.png)](https://drive.google.com/file/d/1qL4mAaK86D0NDyNKL62RMOVqLHQwqjsV/view?usp=drivesdk)

## Technical Requirements

### Prerequisites
- Python 3.8+
- Package Requirements:
  ```python
  gradio == 5.33.0
  requests
  smolagents
  ```
  
### Installation
```python
git clone https://huggingface.co/spaces/Agents-MCP-Hackathon/hybio-agent.git
cd hybio-agent
pip install -r requirements.txt
```
###Configuration
Set your API endpoint in app.py:
`API_ENDPOINT = "your_assistant_api_endpoint_here" #(with its fullpath to the model , should work in post and get requests)`

#### Customize the system message for different bot behaviors:
`system_message = "You are an expert ethnobotanist specializing in Amazonian medicinal plants"`
Running the Application
`python app.py`
Access the interface at `http://localhost:7860`

### Deployment to Hugging Face Spaces
- Create a new Space with Gradio SDK
- Add your API endpoint as a secret in Space settings
- Push your repository to the Space


**Disclaimer**
*Recommendations provided by HyBio Agent are for informational purposes only. Plant-based treatments can interact with medications and health conditions. Always consult with a qualified healthcare professional before using any herbal remedy, especially if pregnant, nursing, or undergoing medical treatment. Do not use as a substitute for professional medical advice.*

---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference