Bofandra commited on
Commit
ac731d0
·
verified ·
1 Parent(s): aba96da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -30,6 +30,7 @@ def respond(
30
  messages.append({"role": "assistant", "content": "I'd be happy to help! Please go ahead and provide the sentence you'd like me to analyze. Please specify whether you're referencing a particular verse or hadith (Prophetic tradition) from the Quran or Hadith, or if you're asking me to analyze a general statement."})
31
 
32
  #adding fatwa references
 
33
  selected_references = torch.load('selected_references.sav', map_location=torch.device('cpu'))
34
  encoded_questions = torch.load('encoded_questions.sav', map_location=torch.device('cpu'))
35
 
@@ -60,6 +61,7 @@ def respond(
60
  #print(assistant)
61
  messages.append({"role": "user", "content":user })
62
  messages.append({"role": "assistant", "content": assistant})
 
63
 
64
  #adding more references
65
  df = pd.read_csv("moslem-bot-reference.csv")
 
30
  messages.append({"role": "assistant", "content": "I'd be happy to help! Please go ahead and provide the sentence you'd like me to analyze. Please specify whether you're referencing a particular verse or hadith (Prophetic tradition) from the Quran or Hadith, or if you're asking me to analyze a general statement."})
31
 
32
  #adding fatwa references
33
+ """
34
  selected_references = torch.load('selected_references.sav', map_location=torch.device('cpu'))
35
  encoded_questions = torch.load('encoded_questions.sav', map_location=torch.device('cpu'))
36
 
 
61
  #print(assistant)
62
  messages.append({"role": "user", "content":user })
63
  messages.append({"role": "assistant", "content": assistant})
64
+ """
65
 
66
  #adding more references
67
  df = pd.read_csv("moslem-bot-reference.csv")