Update Home.py
Browse files
Home.py
CHANGED
@@ -3,33 +3,40 @@ from streamlit_option_menu import option_menu
|
|
3 |
|
4 |
|
5 |
def homepage():
|
6 |
-
st.write("
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
|
10 |
def chat():
|
11 |
st.write("Chat")
|
12 |
st.write("Welcome to the chat page")
|
13 |
|
14 |
-
def invoke_document():
|
15 |
-
|
16 |
-
|
17 |
|
18 |
-
def invoke_audio():
|
19 |
-
|
20 |
-
|
21 |
|
22 |
-
def invoke_video():
|
23 |
-
|
24 |
-
|
25 |
|
26 |
-
def invoke_image():
|
27 |
-
|
28 |
-
|
29 |
|
30 |
-
def invoke_text():
|
31 |
-
|
32 |
-
|
33 |
|
34 |
|
35 |
|
@@ -37,20 +44,23 @@ def invoke_text():
|
|
37 |
def dashboard():
|
38 |
|
39 |
with st.sidebar:
|
40 |
-
selected = option_menu(None, ['Home', 'Chat', "
|
41 |
icons=['π ', 'π¬', "π", "π", "π₯", "πΌοΈ", "π"])
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
|
|
|
3 |
|
4 |
|
5 |
def homepage():
|
6 |
+
st.write("Timeline")
|
7 |
+
allmessages =[]
|
8 |
+
if "messages" not in st.session_state:
|
9 |
+
st.session_state.messages = []
|
10 |
+
|
11 |
+
if usrmsg := st.chat_input("Share a thought"):
|
12 |
+
allmessages = st.session_state.messages.append(usrmsg)
|
13 |
+
with st.chat_message("user")
|
14 |
+
allmessages
|
15 |
|
16 |
|
17 |
def chat():
|
18 |
st.write("Chat")
|
19 |
st.write("Welcome to the chat page")
|
20 |
|
21 |
+
# def invoke_document():
|
22 |
+
# st.write("Invoke Document")
|
23 |
+
# st.write("Welcome to the invoke document page")
|
24 |
|
25 |
+
# def invoke_audio():
|
26 |
+
# st.write("Invoke Audio")
|
27 |
+
# st.write("Welcome to the invoke audio page")
|
28 |
|
29 |
+
# def invoke_video():
|
30 |
+
# st.write("Invoke Video")
|
31 |
+
# st.write("Welcome to the invoke video page")
|
32 |
|
33 |
+
# def invoke_image():
|
34 |
+
# st.write("Invoke Image")
|
35 |
+
# st.write("Welcome to the invoke image page")
|
36 |
|
37 |
+
# def invoke_text():
|
38 |
+
# st.write("Invoke Text")
|
39 |
+
# st.write("Welcome to the invoke text page")
|
40 |
|
41 |
|
42 |
|
|
|
44 |
def dashboard():
|
45 |
|
46 |
with st.sidebar:
|
47 |
+
selected = option_menu(None, ['Home', 'Chat', "Logout"],
|
48 |
icons=['π ', 'π¬', "π", "π", "π₯", "πΌοΈ", "π"])
|
49 |
+
if selected == 'Home':
|
50 |
+
homepage()
|
51 |
+
elif selected == 'Chat':
|
52 |
+
chat()
|
53 |
+
elif selected == 'Logout':
|
54 |
+
st.session_state.user = None
|
55 |
+
st.experimental_rerun()
|
56 |
+
# elif selected == "Invoke Document":
|
57 |
+
# invoke_document()
|
58 |
+
# elif selected == "Invoke Audio":
|
59 |
+
# invoke_audio()
|
60 |
+
# elif selected == "Invoke Video":
|
61 |
+
# invoke_video()
|
62 |
+
# elif selected == "Invoke Image":
|
63 |
+
# invoke_image()
|
64 |
+
# elif selected == "Invoke Text":
|
65 |
+
# invoke_text()
|
66 |
|