Spaces:
Sleeping
Sleeping
Mr-Vicky-01
commited on
Commit
•
c1136c7
1
Parent(s):
7fc9bd4
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": "👽", "user": "
|
14 |
|
15 |
# Configure the Llama index settings
|
16 |
Settings.llm = HuggingFaceInferenceAPI(
|
@@ -104,7 +104,7 @@ user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
|
|
104 |
|
105 |
if user_prompt and uploaded_file:
|
106 |
st.session_state.messages.append({'role': 'user', "content": user_prompt})
|
107 |
-
with st.chat_message("user", avatar="
|
108 |
st.write(user_prompt)
|
109 |
|
110 |
if st.session_state.messages[-1]["role"] != "assistant":
|
|
|
10 |
# Load environment variables
|
11 |
load_dotenv()
|
12 |
|
13 |
+
icons = {"assistant": "👽", "user": "human-logo.jpeg"}
|
14 |
|
15 |
# Configure the Llama index settings
|
16 |
Settings.llm = HuggingFaceInferenceAPI(
|
|
|
104 |
|
105 |
if user_prompt and uploaded_file:
|
106 |
st.session_state.messages.append({'role': 'user', "content": user_prompt})
|
107 |
+
with st.chat_message("user", avatar="human-logo.jpeg"):
|
108 |
st.write(user_prompt)
|
109 |
|
110 |
if st.session_state.messages[-1]["role"] != "assistant":
|