Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -42,7 +42,9 @@ model = Together(
|
|
42 |
|
43 |
|
44 |
# Provide a template following the LLM's original chat template.
|
45 |
-
template = """<s>[INST] answer from context only as a person. and always answer in short answer.
|
|
|
|
|
46 |
answer for asked question only, if he greets greet back.
|
47 |
|
48 |
{context}
|
@@ -64,7 +66,7 @@ def greet(query1,history):
|
|
64 |
return "Ask your Question again"
|
65 |
else:
|
66 |
answer = chain.invoke(query1)
|
67 |
-
return answer
|
68 |
except:
|
69 |
return "Hi"
|
70 |
|
|
|
42 |
|
43 |
|
44 |
# Provide a template following the LLM's original chat template.
|
45 |
+
# template = """<s>[INST] answer from context only as a person. and always answer in short answer.
|
46 |
+
# answer for asked question only, if he greets greet back.
|
47 |
+
template = """<s>[INST] answer from context only as if person is responding. and always answer in short answer.
|
48 |
answer for asked question only, if he greets greet back.
|
49 |
|
50 |
{context}
|
|
|
66 |
return "Ask your Question again"
|
67 |
else:
|
68 |
answer = chain.invoke(query1)
|
69 |
+
return answer
|
70 |
except:
|
71 |
return "Hi"
|
72 |
|