Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import base64
|
|
| 10 |
# Load environment variables
|
| 11 |
load_dotenv()
|
| 12 |
|
| 13 |
-
icons = {"assistant": "
|
| 14 |
|
| 15 |
# Configure the Llama index settings
|
| 16 |
Settings.llm = HuggingFaceInferenceAPI(
|
|
@@ -106,7 +106,7 @@ if user_prompt and uploaded_file:
|
|
| 106 |
# Trigger assistant's response retrieval and update UI
|
| 107 |
with st.spinner("Thinking..."):
|
| 108 |
response = handle_query(user_prompt)
|
| 109 |
-
with st.chat_message("user", avatar="
|
| 110 |
st.write(response)
|
| 111 |
st.session_state.messages.append({'role': 'assistant', "content": response})
|
| 112 |
|
|
|
|
| 10 |
# Load environment variables
|
| 11 |
load_dotenv()
|
| 12 |
|
| 13 |
+
icons = {"assistant": "robot.png", "user": "man-kddi.png"}
|
| 14 |
|
| 15 |
# Configure the Llama index settings
|
| 16 |
Settings.llm = HuggingFaceInferenceAPI(
|
|
|
|
| 106 |
# Trigger assistant's response retrieval and update UI
|
| 107 |
with st.spinner("Thinking..."):
|
| 108 |
response = handle_query(user_prompt)
|
| 109 |
+
with st.chat_message("user", avatar="robot.png"):
|
| 110 |
st.write(response)
|
| 111 |
st.session_state.messages.append({'role': 'assistant', "content": response})
|
| 112 |
|