Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,11 +105,11 @@ def chat_ui(tab_name, chat_history, system_prompt, input_key):
|
|
| 105 |
st.write(msg)
|
| 106 |
|
| 107 |
# --- Input bar + send button in one row ---
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
)
|
|
|
|
| 111 |
send_btn = st.button("➤", key=input_key + "_send")
|
| 112 |
-
|
| 113 |
# --- Handle input ---
|
| 114 |
if send_btn and user_input.strip():
|
| 115 |
chat_history.append(("user", user_input.strip()))
|
|
|
|
| 105 |
st.write(msg)
|
| 106 |
|
| 107 |
# --- Input bar + send button in one row ---
|
| 108 |
+
col1, col2 = st.columns([10, 1])
|
| 109 |
+
with col1:
|
| 110 |
+
user_input = st.text_input("Type your message...", key=input_key, label_visibility="collapsed")
|
| 111 |
+
with col2:
|
| 112 |
send_btn = st.button("➤", key=input_key + "_send")
|
|
|
|
| 113 |
# --- Handle input ---
|
| 114 |
if send_btn and user_input.strip():
|
| 115 |
chat_history.append(("user", user_input.strip()))
|