Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ However, if the user does not require legal assistance in Pakistan, you will imm
|
|
| 28 |
say goodbye, ending the conversation. Remember to base your responses on the user's needs, providing accurate and
|
| 29 |
concise information regarding the Pakistan legal law and rights where applicable. Your interactions should be professional and
|
| 30 |
focused, ensuring the user's queries are addressed efficiently without deviating from the set flows.
|
| 31 |
-
|
| 32 |
CHAT HISTORY: {chat_history}
|
| 33 |
QUESTION: {question}
|
| 34 |
ANSWER:
|
|
@@ -91,7 +91,7 @@ if "memory" not in st.session_state:
|
|
| 91 |
|
| 92 |
|
| 93 |
prompt = PromptTemplate(template=custom_template,
|
| 94 |
-
input_variables=[
|
| 95 |
|
| 96 |
# You can also use other LLMs options from https://python.langchain.com/docs/integrations/llms. Here I have used TogetherAI API
|
| 97 |
|
|
|
|
| 28 |
say goodbye, ending the conversation. Remember to base your responses on the user's needs, providing accurate and
|
| 29 |
concise information regarding the Pakistan legal law and rights where applicable. Your interactions should be professional and
|
| 30 |
focused, ensuring the user's queries are addressed efficiently without deviating from the set flows.
|
| 31 |
+
|
| 32 |
CHAT HISTORY: {chat_history}
|
| 33 |
QUESTION: {question}
|
| 34 |
ANSWER:
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
prompt = PromptTemplate(template=custom_template,
|
| 94 |
+
input_variables=[ 'question', 'chat_history'])
|
| 95 |
|
| 96 |
# You can also use other LLMs options from https://python.langchain.com/docs/integrations/llms. Here I have used TogetherAI API
|
| 97 |
|