File size: 3,400 Bytes
50bc240
 
 
 
 
 
 
 
 
f6247d5
 
50bc240
 
 
6462db2
 
f6247d5
6462db2
 
f6247d5
6462db2
f6247d5
6462db2
f6247d5
 
 
 
 
 
 
6462db2
f6247d5
6462db2
f6247d5
6462db2
f6247d5
 
 
6462db2
 
f6247d5
6462db2
f6247d5
 
 
6462db2
 
f6247d5
 
6462db2
f6247d5
 
 
 
 
6462db2
 
f6247d5
 
6462db2
 
 
 
 
 
 
 
f6247d5
6462db2
 
 
 
 
 
 
 
f6247d5
 
 
 
6462db2
f6247d5
6462db2
f6247d5
6462db2
f6247d5
 
 
 
6462db2
 
f6247d5
6462db2
f6247d5
 
 
6462db2
 
f6247d5
 
 
6462db2
f6247d5
 
 
 
 
6462db2
 
f6247d5
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
---
title: Dental AI Assistant
emoji: πŸƒ
colorFrom: yellow
colorTo: indigo
sdk: gradio
sdk_version: 5.39.0
app_file: app.py
pinned: false
hardware: cpu-upgrade
suggested_hardware: t4-small
---

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


🦷 Dental AI Assistant
An advanced dental consultation and medication extraction system powered by AI. This application provides dental advice, medication recommendations, and intelligent text analysis for medical documents.

πŸš€ Try it now: This Space is running on Hugging Face! No installation required.

✨ Features

🩺 Dental Consultation: Get AI-powered dental advice with detailed medication regimens
πŸ’Š Medication Extraction: Extract and highlight medications from medical text using NLP
🎨 Interactive Visualization: Visual representation of extracted medication entities
⚑ Quick Questions: Pre-built common dental questions for instant answers
βš™οΈ Customizable Settings: Adjust response length and creativity parameters
πŸš€ GPU/CPU Support: Automatic device detection and optimization
πŸ“± Modern UI: Clean, responsive Gradio interface

🎯 Quick Start (Hugging Face Spaces)

Dental Consultation:

Click on the "πŸ’¬ Dental Consultation" tab
Ask your dental question or select from quick questions
Get AI-powered advice with medication recommendations


Medication Extraction:

Switch to "πŸ’Š Medication Extraction" tab
Enter your Gemini API key (get it from Google AI Studio)
Paste medical text to extract medication information


πŸ”‘ Required API Key
For medication extraction functionality, you'll need a Gemini API Key:

Visit Google AI Studio
Sign in with your Google account
Click "Get API Key"
Create a new API key
Use it in the "Medication Extraction" tab


🎯 Usage Examples
Example 1: Dental Consultation
Question: "I have a severe toothache with swelling, provide 3-day medication"

Expected Response: Detailed medication regimen including:
- Antibiotics (dosage, frequency, duration)
- Pain relievers (mechanism of action)
- Anti-inflammatory medications
- Professional consultation disclaimer

Example 2: Medication Extraction
Input Text: "Patient prescribed 500mg Amoxicillin TID for 7 days and 400mg Ibuprofen QID PRN for pain"

Expected Output:
- Medication: Amoxicillin, Ibuprofen
- Dosage: 500mg, 400mg
- Frequency: TID, QID PRN
- Duration: 7 days, as needed

🚨 Important Disclaimers
⚠️ Medical Disclaimer: This AI assistant is for educational purposes only. Always consult with a qualified dentist or healthcare professional for medical advice, diagnosis, or treatment.
⚠️ Accuracy: While the AI strives for accuracy, medical information should always be verified with healthcare professionals.
⚠️ Emergency: For dental emergencies, contact your dentist or emergency services immediately.

πŸ”§ Technical Details

Model Information

Model: yasserrmd/DentaInstruct-1.2B
Framework: Hugging Face Transformers
Device: Auto-detected (GPU/CPU)
Precision: Float16 (GPU) / Float32 (CPU)


Gemini API Errors

Verify API key is correct
Check API quota and billing
Ensure key has necessary permissions


πŸ“„ License
This project is licensed under the MIT License.
πŸ™ Acknowledgments

Model: yasserrmd/DentaInstruct-1.2B
Framework: Hugging Face Transformers
UI: Gradio
NLP: LangExtract
API: Google Gemini


Built with ❀️ for the dental community