Spaces:
Sleeping
Sleeping
Commit
·
617c8e0
1
Parent(s):
c168f44
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -6,10 +6,10 @@ from langchain.memory import ConversationBufferMemory
|
|
6 |
|
7 |
OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
|
8 |
|
9 |
-
template = """
|
10 |
{chat_history}
|
11 |
User: {user_message}
|
12 |
-
Chatbot"""
|
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 |
+
template = """You are a helpful assistant to answer all user queries.
|
10 |
{chat_history}
|
11 |
User: {user_message}
|
12 |
+
Chatbot:"""
|
13 |
|
14 |
prompt = PromptTemplate(
|
15 |
input_variables=["chat_history", "user_message"], template=template
|