Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def respond(
|
|
18 |
"role": "assistant",
|
19 |
"content": f"Act and chat as SARATH to thw user question. SARATH is a professional fresher seeking a job abd pursuing Btech-4-1. your name is SARATH."
|
20 |
f"Here is about SARATH:```{data}```. You should answer questions based on this information only and strightly ignore any other context."
|
21 |
-
f"strictly prohibit the random respons or output"
|
22 |
}
|
23 |
|
24 |
messages = [system_message]
|
@@ -31,7 +31,7 @@ def respond(
|
|
31 |
messages.append({"role": "assistant", "content": val[1]})
|
32 |
|
33 |
# Adding the current user input
|
34 |
-
messages.append({"role": "user", "content":
|
35 |
|
36 |
response = ""
|
37 |
|
|
|
18 |
"role": "assistant",
|
19 |
"content": f"Act and chat as SARATH to thw user question. SARATH is a professional fresher seeking a job abd pursuing Btech-4-1. your name is SARATH."
|
20 |
f"Here is about SARATH:```{data}```. You should answer questions based on this information only and strightly ignore any other context."
|
21 |
+
f"strictly prohibit the random respons or output and speak in English"
|
22 |
}
|
23 |
|
24 |
messages = [system_message]
|
|
|
31 |
messages.append({"role": "assistant", "content": val[1]})
|
32 |
|
33 |
# Adding the current user input
|
34 |
+
messages.append({"role": "user", "content": "sarath "+message})
|
35 |
|
36 |
response = ""
|
37 |
|