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": "π½", "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 |
|
111 |
# Generate a new response if last message is not from assistant
|
|
|
10 |
# Load environment variables
|
11 |
load_dotenv()
|
12 |
|
13 |
+
icons = {"assistant": "π½", "user": "μ"}
|
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=".μ"):
|
109 |
st.write(user_prompt)
|
110 |
|
111 |
# Generate a new response if last message is not from assistant
|