File size: 850 Bytes
b3f1ffe
e51667a
 
 
 
 
5d2a014
 
 
 
 
b3f1ffe
 
e51667a
 
b3f1ffe
 
 
 
 
 
 
e51667a
0676ee0
e51667a
b3f1ffe
e51667a
b3f1ffe
e51667a
b3f1ffe
5d2a014
b3f1ffe
5d2a014
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
import streamlit as st
import yaml
from components.sidebar import sidebar
from components.prompt_engineering_dashboard import prompt_engineering_dashboard
from components.chat_box import chat_box
from components.init_state import init_state
from components.chat_loop import chat_loop

# from components.show_source import show_source
# from components.stream_handler import stream_handler
# from components.generate_chat_stream import generate_chat_stream


with open("config.yaml", "r") as file:
    config = yaml.safe_load(file)

st.set_page_config(
    page_title="Mixtral Playground",
    page_icon="📚",
)


init_state(st.session_state, config)

st.write("# Mixtral Playground")

prompt_engineering_dashboard(st.session_state, config)

sidebar(st.session_state, config)

chat_box(st.session_state, config)

chat_loop(st.session_state, config)