Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def get_page_in_quran(page: int) -> str:
|
|
47 |
data = response.json()
|
48 |
ayahs = data['data']['ayahs']
|
49 |
page_content = "\n".join([ayah['text'] for ayah in ayahs])
|
50 |
-
return page_content
|
51 |
else:
|
52 |
return f"Error: Unable to fetch page: {page} in the quran"
|
53 |
except Exception as e:
|
|
|
47 |
data = response.json()
|
48 |
ayahs = data['data']['ayahs']
|
49 |
page_content = "\n".join([ayah['text'] for ayah in ayahs])
|
50 |
+
return f"The contents of page {page} are: \n{page_content}"
|
51 |
else:
|
52 |
return f"Error: Unable to fetch page: {page} in the quran"
|
53 |
except Exception as e:
|