File size: 1,344 Bytes
273c375
 
cca6750
273c375
 
 
 
 
 
 
 
52338d4
273c375
 
 
 
 
 
b8b0b89
 
 
52338d4
273c375
1c13312
273c375
b8b0b89
1c13312
934d9a2
273c375
b8b0b89
235f64d
273c375
b8b0b89
235f64d
273c375
b8b0b89
235f64d
273c375
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
Module: main

This module initializes the Streamlit app and sets up the user interface for interacting with the chatbot.

Dependencies:
- streamlit: The Streamlit library for building web applications.
- controller: Module providing the Controller class for handling user submissions and managing conversations.
- view.app_header: Module providing the app_header function for displaying the header section of the app.
- view.app_sidebar: Module providing the app_sidebar function for displaying the sidebar section of the app.
- view.app_chat: Module providing the app_chat function for displaying the main chat interface.

Usage:
- Run the Streamlit app using 'streamlit run main.py' command in the terminal.
"""

import streamlit as st
from controller import Controller
from view.app_header import app_header
from view.app_sidebar import app_sidebar
from view.app_chat import app_chat

# Streamlit configuration (holds the session and session history as well)
st.set_page_config(
    page_title="Custom Transformers can really do anything...",
    page_icon="πŸ‘‹" 
)

# Create an instance of Controller with agentConfig ## holds all data, config, and settings
controller = Controller()

# Sidebar for context & config
app_sidebar(controller)

# App header
app_header(controller)

# Main content - the chat interface
app_chat(controller)