ii-sa commited on
Commit
71cd98e
·
verified ·
1 Parent(s): 4f0dd6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: