From 2430b9e2d497b3a64de77a3755c779250b31dbbc Mon Sep 17 00:00:00 2001 From: sean1832 Date: Tue, 14 Feb 2023 03:33:47 +1100 Subject: [PATCH] add advanced mode toggle button --- Seanium_Brain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Seanium_Brain.py b/Seanium_Brain.py index 4dd7347..6671b35 100644 --- a/Seanium_Brain.py +++ b/Seanium_Brain.py @@ -1,4 +1,5 @@ import streamlit as st +import streamlit_toggle as st_toggle from modules import utilities as util from modules import model_data import brain @@ -81,6 +82,7 @@ def process_response(query, target_model, prompt_file: str, data: model_data.par # sidebar with st.sidebar: st.title('Settings') + advanced_mode = st_toggle.st_toggle_switch('Advanced mode', default_value=False) prompt_files = util.scan_directory(PROMPT_PATH) prompt_file_names = [util.get_file_name(file) for file in prompt_files] @@ -164,4 +166,4 @@ with body: # execute brain calculation if not question == '' and send: - execute_brain(question) + execute_brain(question) \ No newline at end of file