Engr-Usman-Ali commited on
Commit
92fe91c
·
verified ·
1 Parent(s): 3500289

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- user_input = st.text_input(
109
- "Type your message...", key=input_key, label_visibility="collapsed"
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()))