Spaces:
Sleeping
Sleeping
Update modules/sidebar.py
Browse files- modules/sidebar.py +7 -7
modules/sidebar.py
CHANGED
@@ -12,9 +12,9 @@ class Sidebar:
|
|
12 |
def about():
|
13 |
about = st.sidebar.expander("π€μ λν")
|
14 |
sections = [
|
15 |
-
"#### CSV-
|
16 |
-
"####
|
17 |
-
"#### [Langchain](https://github.com/hwchase17/langchain), [OpenAI](https://platform.openai.com/docs/models/gpt-3-5)
|
18 |
"#### Source code : [RustX/ChatBot-CSV](https://github.com/RustX2802/CSV-ChatBot)",
|
19 |
]
|
20 |
for section in sections:
|
@@ -22,17 +22,17 @@ class Sidebar:
|
|
22 |
|
23 |
@staticmethod
|
24 |
def reset_chat_button():
|
25 |
-
if st.button("Reset chat
|
26 |
st.session_state["reset_chat"] = True
|
27 |
st.session_state.setdefault("reset_chat", False)
|
28 |
|
29 |
def model_selector(self):
|
30 |
-
model = st.selectbox(label="Model
|
31 |
st.session_state["model"] = model
|
32 |
|
33 |
def temperature_slider(self):
|
34 |
temperature = st.slider(
|
35 |
-
label="Temperature
|
36 |
min_value=self.TEMPERATURE_MIN_VALUE,
|
37 |
max_value=self.TEMPERATURE_MAX_VALUE,
|
38 |
value=self.TEMPERATURE_DEFAULT_VALUE,
|
@@ -46,7 +46,7 @@ class Sidebar:
|
|
46 |
st.session_state["show_csv_agent"] = not st.session_state["show_csv_agent"]
|
47 |
|
48 |
def show_options(self):
|
49 |
-
with st.sidebar.expander("π οΈ Tools
|
50 |
self.reset_chat_button()
|
51 |
self.csv_agent_button()
|
52 |
self.model_selector()
|
|
|
12 |
def about():
|
13 |
about = st.sidebar.expander("π€μ λν")
|
14 |
sections = [
|
15 |
+
"#### CSV-ChatBotis an AI chatbot with interactive memory features designed to help users discuss CSV data in a more intuitive way. π",
|
16 |
+
"#### It uses a large language model to provide users with seamless, contextual, natural language interactions to better understand CSV data.. π",
|
17 |
+
"#### [Langchain](https://github.com/hwchase17/langchain), [OpenAI](https://platform.openai.com/docs/models/gpt-3-5) [Streamlit](https://github.com/streamlit/streamlit)β‘",
|
18 |
"#### Source code : [RustX/ChatBot-CSV](https://github.com/RustX2802/CSV-ChatBot)",
|
19 |
]
|
20 |
for section in sections:
|
|
|
22 |
|
23 |
@staticmethod
|
24 |
def reset_chat_button():
|
25 |
+
if st.button("Reset chat"):
|
26 |
st.session_state["reset_chat"] = True
|
27 |
st.session_state.setdefault("reset_chat", False)
|
28 |
|
29 |
def model_selector(self):
|
30 |
+
model = st.selectbox(label="Model ", options=self.MODEL_OPTIONS)
|
31 |
st.session_state["model"] = model
|
32 |
|
33 |
def temperature_slider(self):
|
34 |
temperature = st.slider(
|
35 |
+
label="Temperature ",
|
36 |
min_value=self.TEMPERATURE_MIN_VALUE,
|
37 |
max_value=self.TEMPERATURE_MAX_VALUE,
|
38 |
value=self.TEMPERATURE_DEFAULT_VALUE,
|
|
|
46 |
st.session_state["show_csv_agent"] = not st.session_state["show_csv_agent"]
|
47 |
|
48 |
def show_options(self):
|
49 |
+
with st.sidebar.expander("π οΈ Tools ", expanded=False):
|
50 |
self.reset_chat_button()
|
51 |
self.csv_agent_button()
|
52 |
self.model_selector()
|