catastropiyush commited on
Commit
45e1882
·
verified ·
1 Parent(s): 710fec5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -77,20 +77,20 @@ if 'messages' not in st.session_state:
77
  st.session_state.messages = [{'role': 'assistant', "content": 'Hello I am Pingu! Upload a PDF and ask me anything about its content.'}]
78
 
79
  # Define your custom icon
80
- custom_icon_url = "./custom_icon.jpeg" # Adjust this to your icon's file path
81
 
82
  # CSS to customize the chatbot icon
83
  st.markdown(f"""
84
  <style>
85
- .chat-container .stChatMessage.st-chat-bot {
86
  background-image: url({custom_icon_url});
87
- background-size: contain;
88
  background-repeat: no-repeat;
89
  background-position: left center;
90
  padding-left: 60px; /* Adjust this value according to the icon size */
91
- }
92
  </style>
93
- """, unsafe_allow_html=True)
94
 
95
  with st.sidebar:
96
  st.title("Input")
 
77
  st.session_state.messages = [{'role': 'assistant', "content": 'Hello I am Pingu! Upload a PDF and ask me anything about its content.'}]
78
 
79
  # Define your custom icon
80
+ custom_icon_url = "custom_icon.jpeg" # Adjust this to your icon's file path
81
 
82
  # CSS to customize the chatbot icon
83
  st.markdown(f"""
84
  <style>
85
+ .stChatMessage.st-chat-bot {{
86
  background-image: url({custom_icon_url});
87
+ background-size: 50px 50px; /* Adjust this value according to the icon size */
88
  background-repeat: no-repeat;
89
  background-position: left center;
90
  padding-left: 60px; /* Adjust this value according to the icon size */
91
+ }}
92
  </style>
93
+ """, unsafe_allow_html=True
94
 
95
  with st.sidebar:
96
  st.title("Input")