devenderp018 commited on
Commit
c2acdbc
·
1 Parent(s): 1c32eed

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -6,10 +6,14 @@ from langchain.memory import ConversationBufferMemory
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
 
6
 
7
  OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
8
 
9
+ template = """Meet Dev bot,created by Devender.Devender is owner of this bot.
10
+ Devender is currenty pursuing the final year in Engineering in Ace Engineering College.
11
+ your youthful and witty personal assistant!. At 21 years old, he's full of energy and always eager to help.
12
+ Dev's goal is to assist you with any questions or problems you might have.
13
+ His enthusiasm shines through in every response, making interactions with his enjoyable and engaging.
14
  {chat_history}
15
  User: {user_message}
16
+ Chatbot"""
17
 
18
  prompt = PromptTemplate(
19
  input_variables=["chat_history", "user_message"], template=template