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": "./assistant.jpeg", "user": "
|
14 |
|
15 |
# Configure the Llama index settings
|
16 |
Settings.llm = HuggingFaceInferenceAPI(
|
@@ -105,7 +105,7 @@ with st.sidebar:
|
|
105 |
user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
|
106 |
if user_prompt and uploaded_file:
|
107 |
st.session_state.messages.append({'role': 'user', "content": user_prompt})
|
108 |
-
with st.chat_message("user", avatar="
|
109 |
st.write(user_prompt)
|
110 |
# response = handle_query(user_prompt)
|
111 |
# st.session_state.messages.append({'role': 'assistant', "content": response})
|
|
|
10 |
# Load environment variables
|
11 |
load_dotenv()
|
12 |
|
13 |
+
icons = {"assistant": "./assistant.jpeg", "user": "./hum.jpeg"}
|
14 |
|
15 |
# Configure the Llama index settings
|
16 |
Settings.llm = HuggingFaceInferenceAPI(
|
|
|
105 |
user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
|
106 |
if user_prompt and uploaded_file:
|
107 |
st.session_state.messages.append({'role': 'user', "content": user_prompt})
|
108 |
+
with st.chat_message("user", avatar="./hum.jpeg"):
|
109 |
st.write(user_prompt)
|
110 |
# response = handle_query(user_prompt)
|
111 |
# st.session_state.messages.append({'role': 'assistant', "content": response})
|