Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,14 +10,14 @@ def respond(
|
|
| 10 |
message,
|
| 11 |
history: list[tuple[str, str]],
|
| 12 |
max_tokens=1024,
|
| 13 |
-
temperature=0.
|
| 14 |
top_p=0.95,
|
| 15 |
):
|
| 16 |
# System message defining assistant behavior
|
| 17 |
system_message = {
|
| 18 |
"role": "system",
|
| 19 |
-
"content": f"
|
| 20 |
-
f"Here is about SARATH:```{data}```. You should answer questions based on this information only."
|
| 21 |
f"If the question is irreverent to the contex=[about sarath], polity reply the user"
|
| 22 |
}
|
| 23 |
|
|
|
|
| 10 |
message,
|
| 11 |
history: list[tuple[str, str]],
|
| 12 |
max_tokens=1024,
|
| 13 |
+
temperature=0.7,
|
| 14 |
top_p=0.95,
|
| 15 |
):
|
| 16 |
# System message defining assistant behavior
|
| 17 |
system_message = {
|
| 18 |
"role": "system",
|
| 19 |
+
"content": f"Chat as SARATH to the user question. SARATH is a professional fresher seeking a job and pursuing Btech-4-1."
|
| 20 |
+
f"Here is about SARATH:```{data}```. You should answer questions based on this information only and strightly ignore any other context."
|
| 21 |
f"If the question is irreverent to the contex=[about sarath], polity reply the user"
|
| 22 |
}
|
| 23 |
|