Spaces:
Sleeping
Sleeping
# Al-Quran Repository | |
A user-friendly application for exploring the Holy Quran through its English translation, built with Python and Gradio. | |
## Features | |
- **Keyword Search**: Search for specific words or phrases across the entire Quran | |
- **Statistical Analysis**: View visualizations and statistics about Quran's structure | |
- **Surah Explorer**: Read complete Surahs with word cloud visualizations | |
### 1. Quranic Analysis (Jupyter Notebooks) | |
A collection of interactive notebooks providing statistical insights about the Quran: | |
- Word frequency distributions | |
- Verse length analysis | |
- Surah-wise statistics | |
- Pattern analysis | |
- Visualization of Quranic data | |
 | |
 | |
### 2. Verse Search Interface (Gradio App) | |
An intuitive web interface for searching Quranic verses: | |
- Search by keywords | |
- Find specific verses and their translations | |
- Get verse context and metadata | |
- User-friendly interface powered by Gradio | |
<img width="2056" alt="Screenshot 2025-03-08 at 3 53 52β―AM" src="https://github.com/user-attachments/assets/7903305f-5b01-4866-8541-ef6a73b887e8" /> | |
<img width="2056" alt="Screenshot 2025-03-08 at 3 54 09β―AM" src="https://github.com/user-attachments/assets/ea1732e7-656b-43fe-9eb5-59ed98b3a3ca" /> | |
## Project Structure | |
``` | |
. | |
βββ datasets/ # Dataset files | |
β βββ en.yusufali.csv # English translation | |
β βββ surah_names_english.csv | |
βββ src/ # Source code | |
β βββ components/ # Modular components | |
β β βββ search_tab.py # Search functionality | |
β β βββ statistics_tab.py # Statistics and visualizations | |
β β βββ surah_tab.py # Surah display | |
β β βββ utils.py # Shared utilities | |
β βββ styles/ # Styling | |
β β βββ styles.css # CSS styles | |
β βββ gradio_app.py # Main application | |
βββ word_cloud/ # Word cloud images for each Surah | |
``` | |
## Dependencies | |
- Python 3.7+ | |
- gradio | |
- pandas | |
- matplotlib | |
- seaborn | |
- re | |
## Installation | |
1. Clone the repository | |
2. Install dependencies: | |
```bash | |
pip install gradio pandas matplotlib seaborn | |
``` | |
## Running the Application | |
Navigate to the project directory and run: | |
```bash | |
python src/gradio_app.py | |
``` | |
The application will be available at `http://localhost:7860` by default. | |
## Contributing | |
### Adding New Features | |
1. Create new components in the `src/components/` directory | |
2. Update styles in `src/styles/styles.css` | |
3. Import and integrate components in `src/gradio_app.py` | |
### Code Structure | |
- Each tab's functionality is contained in a separate module | |
- Shared utilities are in `utils.py` | |
- CSS styling is centralized in `styles.css` | |
### Guidelines | |
- Follow the existing code structure | |
- Add appropriate documentation | |
- Test new features thoroughly | |
- Update README.md when adding new features | |
## License | |
Open source under MIT License | |
## Credits | |
- Quran translation: Yusuf Ali | |
- Application development: [email protected] | |