A newer version of the Gradio SDK is available:
6.9.0
metadata
title: Test
emoji: ⚡
colorFrom: indigo
colorTo: gray
sdk: gradio
sdk_version: 6.5.1
app_file: app.py
pinned: false
🔍 Medical Document Search using sentence-transformers/embeddinggemma-300m-medical
A search tool specialized in the medical field to helps you find relevant information across your medical documents.
How It Works
- Enter your question in the reference sentence box (e.g., "Is Mr. Allen eligible for enrollment given his type 2 diabetes?")
- Add documents to search through in the comparison sentence boxes
- Click "Calculate Similarity" to see ranked results
- Review the scores:
- 🟢 Green (≥0.70): High similarity - very relevant
- 🟠 Orange (0.50-0.69): Medium similarity - somewhat relevant
- 🟣 Purple (<0.50): Lower similarity - less relevant
Installation
pip install -r requirements.txt
Setup
- Get a Hugging Face API token from huggingface.co/settings/tokens
- Create a
.envfile in the project directory:
HF_TOKEN=your_token_here
- Run the application:
python main.py
Notes
Note that for efficiency purposes, a template of the interface code and the css code was generate with an LLM.