Adr740 commited on
Commit
39175a8
·
1 Parent(s): 40f3f36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -9,8 +9,16 @@ title = "Smart Hadith"
9
  desc = "### This is a simple AI tool. Write your problem or situation (personal or not) and quickly find relevant hadiths on this topic or a problem you have. Just type in plain English how you feel. Contact suggestions/questions: [email protected]\n\n"
10
 
11
 
12
- warning = "Warning!\n **PLEASE READ THE DISCLAIMER BELOW** This isn't a 100% accurate tool; not all Hadiths are present in the database, and some results might be repetitive. If that's the case, try generating more Hadiths with the selector.\nMore informations describing how the tool works are coming soon\n\n## DISCLAIMER\n\nTHIS TOOL IS INTENDED FOR REFERENCE PURPOSES ONLY AND IS NOT INTENDED TO BE TAKEN AS RELIGIOUS ADVICE. THE HADITHS DISPLAYED BY THIS TOOL ARE NOT INTENDED TO BE USED AS A SOLE SOURCE OF RELIGIOUS GUIDANCE. USERS ARE RESPONSIBLE FOR CONDUCTING THEIR OWN RESEARCH AND SEEKING GUIDANCE FROM RELIGIOUS SCHOLARS.\n\nPLEASE NOTE THAT THE CONTENT DISPLAYED BY THIS TOOL IS NOT GUARANTEED TO BE ACCURATE, COMPLETE, OR UP-TO-DATE.\n\nTHE DEVELOPERS OF THIS TOOL WILL NOT BE HELD RESPONSIBLE FOR ANY DECISIONS MADE BY THE USERS OF THIS TOOL THAT ARE BASED ON THE CONTENT DISPLAYED BY THIS TOOL.\n\nHadiths gathered from this repository: https:\/\/www.kaggle.com\/datasets\/fahd09\/hadith-dataset"
13
-
 
 
 
 
 
 
 
 
14
  def update_results(text_area, number_to_display=10):
15
  print("run update results")
16
  results = hadith_search.search_hadiths(text_area, number_to_display)
 
9
  desc = "### This is a simple AI tool. Write your problem or situation (personal or not) and quickly find relevant hadiths on this topic or a problem you have. Just type in plain English how you feel. Contact suggestions/questions: [email protected]\n\n"
10
 
11
 
12
+ warning = """
13
+ Warning!\n **PLEASE READ THE DISCLAIMER BELOW** This isn't a 100% accurate tool;
14
+ not all Hadiths are present in the database, and some results might be repetitive. If that's the case, try generating more Hadiths with the selector.\n
15
+ More information describing how the tool works is coming soon\n\n
16
+ ## DISCLAIMER\n\n
17
+ THIS TOOL IS INTENDED FOR REFERENCE PURPOSES ONLY AND IS NOT INTENDED TO BE TAKEN AS RELIGIOUS ADVICE. THE HADITHS DISPLAYED BY THIS TOOL ARE NOT INTENDED TO BE USED AS A SOLE SOURCE OF RELIGIOUS GUIDANCE.
18
+ USERS ARE RESPONSIBLE FOR CONDUCTING THEIR RESEARCH AND SEEKING GUIDANCE FROM RELIGIOUS SCHOLARS.\n\nPLEASE NOTE THAT THE CONTENT DISPLAYED BY THIS TOOL IS NOT GUARANTEED TO BE ACCURATE, COMPLETE, OR UP-TO-DATE.\n\n
19
+ THE DEVELOPERS OF THIS TOOL WILL NOT BE HELD RESPONSIBLE FOR ANY DECISIONS MADE BY THE USERS OF THIS TOOL THAT ARE BASED ON THE CONTENT DISPLAYED BY THIS TOOL.\n\nHadiths gathered from this repository:
20
+ https://www.kaggle.com/datasets/fahd09/hadith-dataset
21
+ """
22
  def update_results(text_area, number_to_display=10):
23
  print("run update results")
24
  results = hadith_search.search_hadiths(text_area, number_to_display)