Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +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 |
-
|
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,7 +61,7 @@ def respond(
|
|
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")
|
|
|
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")
|