Skincare-by-Dr-Aisha-Ghias
commited on
Commit
•
678b96b
1
Parent(s):
4c9038c
Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,14 @@ if uploaded_file:
|
|
50 |
st.write("## Ai Skin Check Assitant")
|
51 |
st.write("Have questions? Type your message below.")
|
52 |
|
53 |
-
# Display all previous messages
|
54 |
for msg in st.session_state.messages:
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
# User input
|
58 |
user_input = st.chat_input("Type your message here...")
|
|
|
50 |
st.write("## Ai Skin Check Assitant")
|
51 |
st.write("Have questions? Type your message below.")
|
52 |
|
|
|
53 |
for msg in st.session_state.messages:
|
54 |
+
avatar_image = None # Default avatar
|
55 |
+
if msg["role"] == "assistant":
|
56 |
+
avatar_image = # Set the assistant's avatar image
|
57 |
+
|
58 |
+
# Render the message with the appropriate avatar
|
59 |
+
st.chat_message(msg["role"], avatar="LOGO.png").write(msg["content"])
|
60 |
+
|
61 |
|
62 |
# User input
|
63 |
user_input = st.chat_input("Type your message here...")
|