Spaces:
Sleeping
Sleeping
Commit ·
d97aa7f
1
Parent(s): 6f7c8f8
quality of life
Browse files
app.py
CHANGED
|
@@ -16,6 +16,9 @@ st.write("Using Facebook Blenderbot")
|
|
| 16 |
# Initialize chat history
|
| 17 |
if "messages" not in st.session_state:
|
| 18 |
st.session_state.messages = []
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# Display chat history
|
| 21 |
for msg in st.session_state.messages:
|
|
|
|
| 16 |
# Initialize chat history
|
| 17 |
if "messages" not in st.session_state:
|
| 18 |
st.session_state.messages = []
|
| 19 |
+
# Add initial bot welcome message
|
| 20 |
+
initial_message = "Hello! I'm a chatbot. You can upload an image or ask me anything to get started!"
|
| 21 |
+
st.session_state.messages.append({"role": "assistant", "content": initial_message})
|
| 22 |
|
| 23 |
# Display chat history
|
| 24 |
for msg in st.session_state.messages:
|