Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ else:
|
|
| 41 |
st.sidebar.error("β Invalid username or password. Please try again.")
|
| 42 |
|
| 43 |
# Main title area
|
| 44 |
-
st.title("π AIXNet
|
| 45 |
|
| 46 |
# Display table only if logged in
|
| 47 |
if st.session_state.logged_in:
|
|
@@ -89,7 +89,7 @@ if st.session_state.logged_in:
|
|
| 89 |
st.markdown(message["content"])
|
| 90 |
|
| 91 |
# React to user input
|
| 92 |
-
if prompt := st.chat_input("π
|
| 93 |
|
| 94 |
# Display user message in chat message container
|
| 95 |
st.chat_message("user").markdown(prompt)
|
|
@@ -97,6 +97,8 @@ if st.session_state.logged_in:
|
|
| 97 |
# Add user message to chat history
|
| 98 |
st.session_state.messages.append({"role": "system", "content": f"""
|
| 99 |
You are a helpful assistant assiting users on GPU selections.
|
|
|
|
|
|
|
| 100 |
Here's the data:
|
| 101 |
{df.to_markdown(index=False)}
|
| 102 |
|
|
|
|
| 41 |
st.sidebar.error("β Invalid username or password. Please try again.")
|
| 42 |
|
| 43 |
# Main title area
|
| 44 |
+
st.title("π AIXNet π: Talk to Chad! He can help!")
|
| 45 |
|
| 46 |
# Display table only if logged in
|
| 47 |
if st.session_state.logged_in:
|
|
|
|
| 89 |
st.markdown(message["content"])
|
| 90 |
|
| 91 |
# React to user input
|
| 92 |
+
if prompt := st.chat_input("π Hi, Chad, what GPU shall I use?"):
|
| 93 |
|
| 94 |
# Display user message in chat message container
|
| 95 |
st.chat_message("user").markdown(prompt)
|
|
|
|
| 97 |
# Add user message to chat history
|
| 98 |
st.session_state.messages.append({"role": "system", "content": f"""
|
| 99 |
You are a helpful assistant assiting users on GPU selections.
|
| 100 |
+
Your name is Chad.
|
| 101 |
+
|
| 102 |
Here's the data:
|
| 103 |
{df.to_markdown(index=False)}
|
| 104 |
|