Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,18 +24,15 @@ def respond(
|
|
24 |
if val[1]:
|
25 |
messages.append({"role": "assistant", "content": val[1]})
|
26 |
|
27 |
-
messages.append({"role": "user", "content": "I want you to answer based on quran and hadith"})
|
28 |
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."})
|
29 |
|
30 |
for index, row in df.iterrows():
|
31 |
messages.append({"role": "user", "content": row['user']})
|
32 |
-
print("user")
|
33 |
-
print(row['user'])
|
34 |
messages.append({"role": "assistant", "content": row['assistant']})
|
35 |
-
print("assistant")
|
36 |
-
print(row['assistant'])
|
37 |
|
38 |
messages.append({"role": "user", "content": message})
|
|
|
39 |
|
40 |
response = ""
|
41 |
|
|
|
24 |
if val[1]:
|
25 |
messages.append({"role": "assistant", "content": val[1]})
|
26 |
|
27 |
+
messages.append({"role": "user", "content": "I want you to answer strictly based on quran and hadith"})
|
28 |
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."})
|
29 |
|
30 |
for index, row in df.iterrows():
|
31 |
messages.append({"role": "user", "content": row['user']})
|
|
|
|
|
32 |
messages.append({"role": "assistant", "content": row['assistant']})
|
|
|
|
|
33 |
|
34 |
messages.append({"role": "user", "content": message})
|
35 |
+
print(messages)
|
36 |
|
37 |
response = ""
|
38 |
|