Update app.py
Browse files
app.py
CHANGED
@@ -31,9 +31,8 @@ model = ChatTogether(
|
|
31 |
temperature=0.0,
|
32 |
max_tokens=500,)
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
template = """
|
37 |
{context}
|
38 |
Question: {question} [/INST]
|
39 |
"""
|
@@ -47,7 +46,7 @@ chain = (
|
|
47 |
)
|
48 |
|
49 |
|
50 |
-
st.title("
|
51 |
|
52 |
# Initialize chat history
|
53 |
if "messages" not in st.session_state:
|
|
|
31 |
temperature=0.0,
|
32 |
max_tokens=500,)
|
33 |
|
34 |
+
template = """<s>[INST] answer from context only as if person is responding (use i instead of you in response). and always answer in short answer.
|
35 |
+
answer for asked question only, if he greets greet back.
|
|
|
36 |
{context}
|
37 |
Question: {question} [/INST]
|
38 |
"""
|
|
|
46 |
)
|
47 |
|
48 |
|
49 |
+
st.title("Chat with me chat")
|
50 |
|
51 |
# Initialize chat history
|
52 |
if "messages" not in st.session_state:
|