Welcome to SheikhGPT, a Streamlit-powered Islamic content generation tool. The app allows users to interact with Islamic teachings through Quran recitations, Hadith retrieval, and custom Islamic content generation.
SheikhGPT provides three main functionalities:
- Quran Recitation: Listen to Quran recitations in Arabic with Urdu translation.
- Hadith Retrieval: Search for Hadiths by topics, with Arabic and Urdu translations, and references.
- Islamic Content Generation: Ask Islamic questions and receive answers in your chosen language.
The app is divided into several sections:
- Title: Displays "SheikhGPT" with an icon.
- Navigation Links:
- Quran Recitation: Directs users to the Quran recitation section.
- Hadith: Allows users to search for Hadiths.
- Language Selection: Choose your input and output language for the content generation.
- Settings: Manage and review your favorite responses and export your chat history.
- Text Input: Users can type their Islamic questions here.
- Speech Input: Click the microphone button to ask your question using speech recognition.
- Generated Responses: SheikhGPT will answer your question using its language model.
- Add to Favorites: Users can mark responses as favorites and manage them from the sidebar.
- View Favorites: Users can expand a list of favorite responses in the sidebar.
How to Use:
- Navigate to the Quran Recitation page from the home screen.
- Select a Surah from the dropdown list.
- Specify the Ayah range (start and end Ayahs).
- Choose your preferred reciter from the dropdown.
- Click Play Recitation. The app will fetch the Quran recitation in Arabic along with its Urdu translation.
- The recitation will play in the app's audio player, and the Urdu translation will be displayed.
How to Use:
- Navigate to the Hadith section.
- Enter a query like "prayer" or "fasting."
- Click Fetch Hadith.
- The app will return at least five Hadiths in Arabic with Urdu translations, alongside references.
How to Use:
- Type your Islamic question in the chat input (or use speech-to-text).
- SheikhGPT will translate your question into English, process it, and generate a response.
- The response will be translated back into your chosen language (from the settings sidebar) and displayed.
- Mark any response as a Favorite using the star button for quick access later.
- Users can download the chat history in JSON format using the Export Chat History button in the sidebar.
- Clear the chat history or your favorites using the respective buttons in the sidebar.
If you encounter any issues, such as a missing recitation or invalid input, appropriate error messages will be displayed. Check if the inputs (Surah, Ayah range, and reciter) are correct, and try again.