Spaces:
Sleeping
Sleeping
File size: 1,743 Bytes
2ecf187 eaa3d2a 2ecf187 eaa3d2a 2ecf187 eaa3d2a 2ecf187 eaa3d2a |
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 |
---
title: Samaritan Torah Search
emoji: π
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 4.19.2
app_file: app.py
pinned: false
---
# Samaritan Torah Search
A Gradio application for searching through the Samaritan Torah text with both exact and fuzzy matching capabilities.
## Features
- **Search Types**:
- Exact Match: Find precise matches of your search terms
- Fuzzy Match: Find similar matches with more lenient matching rules
- **Search Capabilities**:
- Full text search across all verses
- Highlighted search terms in results
- RTL (Right-to-Left) text support for Hebrew
- **User Interface**:
- Clean, modern design
- Responsive layout
- Custom Hebrew font (NarkisClassic)
- Search button and Enter key support
## Usage
1. Enter your search term in the search box
2. Choose between "Exact Match" or "Fuzzy Match"
3. Click the Search button or press Enter
4. View the results with highlighted matches
## Technical Details
- Built with Gradio
- Uses SQLite with FTS5 for full-text search
- Custom CSS for RTL support and styling
- Responsive design for all screen sizes
## Development
### Local Setup
1. Install dependencies:
```bash
pip install -r requirements.txt
```
2. Run the app:
```bash
python app.py
```
### Hugging Face Spaces
This app is deployed on Hugging Face Spaces. The deployment is automatic when changes are pushed to the repository.
## Data
The app uses a SQLite database with FTS5 enabled for efficient full-text search. The database contains the complete text of the Samaritan Torah with the following structure:
- `verses` table: Contains the main verse data
- `verses_fts` virtual table: FTS5 table for full-text search
## License
MIT License |