Spaces:
Sleeping
Sleeping
metadata
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
- Enter your search term in the search box
- Choose between "Exact Match" or "Fuzzy Match"
- Click the Search button or press Enter
- 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
Install dependencies:
pip install -r requirements.txt
Run the app:
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 dataverses_fts
virtual table: FTS5 table for full-text search
License
MIT License