Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,14 +131,13 @@ with chat_container:
|
|
| 131 |
st.markdown(content)
|
| 132 |
# "New Chat" button (Right Side of Input Box)
|
| 133 |
col1, col2 = st.columns([4, 1])
|
| 134 |
-
|
|
|
|
|
|
|
| 135 |
if st.button("🆕 New Chat"):
|
| 136 |
st.session_state.session_id = str(uuid.uuid4()) # Generate new session
|
| 137 |
st.session_state.messages = [] # Clear chat history
|
| 138 |
st.rerun() # Refresh the app
|
| 139 |
-
|
| 140 |
-
# User input at the bottom
|
| 141 |
-
with col1:
|
| 142 |
# 🔹 **Fixed Bottom User Input**
|
| 143 |
user_input = st.text_input("Type your message here:", key="user_message")
|
| 144 |
|
|
|
|
| 131 |
st.markdown(content)
|
| 132 |
# "New Chat" button (Right Side of Input Box)
|
| 133 |
col1, col2 = st.columns([4, 1])
|
| 134 |
+
|
| 135 |
+
# User input at the bottom
|
| 136 |
+
with col1:
|
| 137 |
if st.button("🆕 New Chat"):
|
| 138 |
st.session_state.session_id = str(uuid.uuid4()) # Generate new session
|
| 139 |
st.session_state.messages = [] # Clear chat history
|
| 140 |
st.rerun() # Refresh the app
|
|
|
|
|
|
|
|
|
|
| 141 |
# 🔹 **Fixed Bottom User Input**
|
| 142 |
user_input = st.text_input("Type your message here:", key="user_message")
|
| 143 |
|