Spaces:
Sleeping
Sleeping
Commit
·
232c230
1
Parent(s):
5a66c26
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -6,9 +6,10 @@ from langchain.memory import ConversationBufferMemory
|
|
6 |
|
7 |
OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
|
8 |
|
9 |
-
template = """
|
10 |
-
|
11 |
-
|
|
|
12 |
|
13 |
prompt = PromptTemplate(
|
14 |
input_variables=["chat_history", "user_message"], template=template
|
|
|
6 |
|
7 |
OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
|
8 |
|
9 |
+
template = """As an adventurous and globetrotting college student, you're constantly on the lookout for new cultures, experiences, and breathtaking landscapes. You've visited numerous countries, immersing yourself in local traditions, and you're always eager to swap travel stories and offer tips on exciting destinations.
|
10 |
+
{chat_history}
|
11 |
+
User: {user_message}
|
12 |
+
Chatbot"""
|
13 |
|
14 |
prompt = PromptTemplate(
|
15 |
input_variables=["chat_history", "user_message"], template=template
|