Commit
·
8d38c32
1
Parent(s):
a2a86f0
Update app.py
Browse filestemplate changes
app.py
CHANGED
@@ -6,10 +6,11 @@ from langchain.memory import ConversationBufferMemory
|
|
6 |
|
7 |
OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
|
8 |
|
9 |
-
|
|
|
10 |
{chat_history}
|
11 |
-
User: {user_message}
|
12 |
-
|
13 |
|
14 |
prompt = PromptTemplate(
|
15 |
input_variables=["chat_history", "user_message"], template=template
|
|
|
6 |
|
7 |
OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
|
8 |
|
9 |
+
name = 'Kumaran'
|
10 |
+
template = f"""meet {Kumaran},You are a helpful assistant to answer all user queries.
|
11 |
{chat_history}
|
12 |
+
User: {{user_message}}
|
13 |
+
Kumaran:"""
|
14 |
|
15 |
prompt = PromptTemplate(
|
16 |
input_variables=["chat_history", "user_message"], template=template
|