--- 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