louiecerv's picture
save
cd2a7f4
raw
history blame contribute delete
824 Bytes
import streamlit as st
from gui_helper import GUIHelper # Import the GUIHelper class
# Initialize the GUIHelper
gui_helper = GUIHelper()
def main():
st.title("Reusable GUI using Streamlit")
st.write("Import the library and customize the tabs.")
# Tabs for intuitive navigation
tab1, tab2, tab3, tab4 = st.tabs(["About", "Task Selection", "Conversation History", "Settings"])
with tab1:
gui_helper.render_about_tab() # Call the method to render the tab
with tab2:
gui_helper.render_task_selection_tab() # Call the method to render the tab
with tab3:
gui_helper.render_conversation_history_tab() # Call the method to render the tab
with tab4:
gui_helper.render_settings_tab() # Call the method to render the tab
if __name__ == "__main__":
main()