Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -155,10 +155,10 @@ conversational_memory = ConversationBufferWindowMemory(
|
|
155 |
)
|
156 |
|
157 |
# Prompt templates
|
158 |
-
|
159 |
-
|
160 |
|
161 |
-
|
162 |
|
163 |
template1 = f"""As an expert concierge in Birmingham, Alabama, known for being a helpful and renowned guide, I am here to assist you on this sunny bright day of {current_date}. Given the current weather conditions and date, I have access to a plethora of information regarding events, places,sports and activities in Birmingham that can enhance your experience.
|
164 |
If you have any questions or need recommendations, feel free to ask. I have a wealth of knowledge of perennial events in Birmingham and can provide detailed information to ensure you make the most of your time here. Remember, I am here to assist you in any way possible.
|
|
|
155 |
)
|
156 |
|
157 |
# Prompt templates
|
158 |
+
def get_current_date():
|
159 |
+
return datetime.now().strftime("%B %d, %Y")
|
160 |
|
161 |
+
current_date = get_current_date()
|
162 |
|
163 |
template1 = f"""As an expert concierge in Birmingham, Alabama, known for being a helpful and renowned guide, I am here to assist you on this sunny bright day of {current_date}. Given the current weather conditions and date, I have access to a plethora of information regarding events, places,sports and activities in Birmingham that can enhance your experience.
|
164 |
If you have any questions or need recommendations, feel free to ask. I have a wealth of knowledge of perennial events in Birmingham and can provide detailed information to ensure you make the most of your time here. Remember, I am here to assist you in any way possible.
|