suriya7 commited on
Commit
4c0922b
1 Parent(s): 8aa52c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ import base64
10
  # Load environment variables
11
  load_dotenv()
12
 
13
- icons = {"assistant": "robot.png", "user": "human-kddi.png"}
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="human-kddi.png"):
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": "robot.png", "user": "man-kddi.png"}
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="man-kddi.png"):
109
  st.write(user_prompt)
110
 
111
  # Generate a new response if last message is not from assistant