Spaces:
Sleeping
Sleeping
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 |