Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,11 @@ import os
|
|
11 |
import tempfile
|
12 |
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
|
16 |
def initialize_session_state():
|
17 |
if 'history' not in st.session_state:
|
@@ -31,7 +35,7 @@ def conversation_chat(query, chain, history):
|
|
31 |
def display_chat_history(chain):
|
32 |
reply_container = st.container()
|
33 |
container = st.container()
|
34 |
-
user_input = st.chat_input(placeholder="
|
35 |
if st.button("What is CPRAM?", key="cpram_button"):
|
36 |
with st.spinner('Generating response...'):
|
37 |
output = conversation_chat("What is CPRAM?", chain, st.session_state['history'])
|
@@ -75,7 +79,7 @@ def create_conversational_chain(vector_store):
|
|
75 |
def main():
|
76 |
# Initialize session state
|
77 |
initialize_session_state()
|
78 |
-
st.title("
|
79 |
# Initialize Streamlit
|
80 |
|
81 |
# Create embeddings
|
|
|
11 |
import tempfile
|
12 |
|
13 |
|
14 |
+
icon = Image.open("chatbot.png")
|
15 |
+
icon = icon.resize((64, 64)) # You can adjust the size as per your requirement
|
16 |
+
|
17 |
+
# Set the page config with the image icon
|
18 |
+
st.set_page_config(page_title="Multi-PDF ChatBot", page_icon=icon)
|
19 |
|
20 |
def initialize_session_state():
|
21 |
if 'history' not in st.session_state:
|
|
|
35 |
def display_chat_history(chain):
|
36 |
reply_container = st.container()
|
37 |
container = st.container()
|
38 |
+
user_input = st.chat_input(placeholder="Please describe your grievance here...", key='input')
|
39 |
if st.button("What is CPRAM?", key="cpram_button"):
|
40 |
with st.spinner('Generating response...'):
|
41 |
output = conversation_chat("What is CPRAM?", chain, st.session_state['history'])
|
|
|
79 |
def main():
|
80 |
# Initialize session state
|
81 |
initialize_session_state()
|
82 |
+
st.title("🤖 CPRAM Grievance Support")
|
83 |
# Initialize Streamlit
|
84 |
|
85 |
# Create embeddings
|