Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.29.0
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
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
- Clone the repository
- Install dependencies:
pip install gradio pandas matplotlib seaborn
Running the Application
Navigate to the project directory and run:
python src/gradio_app.py
The application will be available at http://localhost:7860
by default.
Contributing
Adding New Features
- Create new components in the
src/components/
directory - Update styles in
src/styles/styles.css
- 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]