Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ from secretsload import load_stsecrets
|
|
15 |
credentials = load_stsecrets()
|
16 |
|
17 |
st.set_page_config(
|
18 |
-
page_title="Jimmy
|
19 |
-
page_icon="
|
20 |
initial_sidebar_state="collapsed"
|
21 |
)
|
22 |
|
@@ -101,7 +101,7 @@ def chat_interface():
|
|
101 |
|
102 |
if user_input:
|
103 |
# Add user message to chat history
|
104 |
-
st.session_state.chat_history.append({"role": "user", "content": user_input,
|
105 |
|
106 |
# Prepare the prompt
|
107 |
prompt = prepare_prompt(user_input, st.session_state.chat_history)
|
|
|
15 |
credentials = load_stsecrets()
|
16 |
|
17 |
st.set_page_config(
|
18 |
+
page_title="Jimmy",
|
19 |
+
page_icon="π",
|
20 |
initial_sidebar_state="collapsed"
|
21 |
)
|
22 |
|
|
|
101 |
|
102 |
if user_input:
|
103 |
# Add user message to chat history
|
104 |
+
st.session_state.chat_history.append({"role": "user", "content": user_input, avatar="π€"})
|
105 |
|
106 |
# Prepare the prompt
|
107 |
prompt = prepare_prompt(user_input, st.session_state.chat_history)
|