File size: 1,646 Bytes
1474fc7
 
 
 
 
 
 
 
 
 
 
30ad5fe
1474fc7
30ad5fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4234bec
30ad5fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: DoctorAi Offline
emoji: 🐠
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 5.1.0
app_file: app.py
pinned: false
short_description: DoctorAi That Helps You With The Injury and Other, Offline
---
# Doctor AI - Offline Medical Chatbot

## Overview
Doctor AI is an **offline chatbot** designed to answer medical-related questions. It utilizes a pre-trained deep learning model for natural language understanding and **works completely offline**. No internet connection is required once it's set up.

## Features
- Ask Doctor AI about injuries, symptoms, and other health-related topics.
- **Fully offline functionality**.
- Based on a custom-trained deep learning model.

## Setup

### Requirements
- Python 3.x
- TensorFlow 2.x
- Gradio for the user interface

### Steps to Run Locally

1. **Clone the Repository**:
    ```bash
    git clone https://huggingface.co/spaces/szili2011/DoctorAi-Offline/
    cd doctor-ai-offline
    ```

2. **Install Dependencies**:
    Make sure all necessary Python packages are installed by running:
    ```bash
    pip install -r requirements.txt
    ```

3. **Download the Model**:
    Ensure the trained model (`doctor_ai_model.h5`) is in the same folder as the code, or update the `model_path` in `app.py` to point to the correct location.

4. **Run the Application**:
    ```bash
    python app.py
    ```

5. Open the Gradio interface and start chatting with Doctor AI. **This chatbot works completely offline.**

## Model Information
The chatbot model was trained on a medical QA dataset and uses TensorFlow for inference. It is designed to work entirely offline once the model is loaded.