Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,14 +19,6 @@ def get_ayyahs(word:str,required_instances:int = 3)->list:
|
|
| 19 |
Defaults to 3. If fewer occurrences
|
| 20 |
exist, all available results are returned.
|
| 21 |
|
| 22 |
-
Returns:
|
| 23 |
-
list: A list of tuples containing:
|
| 24 |
-
- The ayah (verse) text (str)
|
| 25 |
-
- The Surah name in Arabic (str)
|
| 26 |
-
- The Surah name in English (str)
|
| 27 |
-
- The ayah number in the Surah (int)
|
| 28 |
-
|
| 29 |
-
If an error occurs, returns an error message (str).
|
| 30 |
"""
|
| 31 |
ayats = []
|
| 32 |
url = f"http://api.alquran.cloud/v1/search/{word}/all/en.asad"
|
|
|
|
| 19 |
Defaults to 3. If fewer occurrences
|
| 20 |
exist, all available results are returned.
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
"""
|
| 23 |
ayats = []
|
| 24 |
url = f"http://api.alquran.cloud/v1/search/{word}/all/en.asad"
|