Update app.py
Browse files25 unmodified lines26272829303132333435363738394041424344454647484925 unmodified lineschatbot_component = gr.Chatbot(type="messages", label="Chat History", height=500)with gr.Row():# Textbox for user inputwith gr.Column(scale=0.9):user_input = gr.Textbox(placeholder="Type your message here...", label="Your Input", lines=1)# Square send buttonwith gr.Column(scale=0.1):send_button = gr.Button("📤", elem_id="send_button")# Add CSS to style the send button as a squaredemo.css = """#send_button {width: 40px;height: 40px;padding: 0;margin: 0;display: flex;justify-content: center;align-items: center;border-radius: 5px; /* Optional: For slightly rounded corners */}"""25 unmodified lines26272829303132333435363738394041424344454647484950515253545556575859606162636465666725 unmodified lineschatbot_component = gr.Chatbot(type="messages", label="Chat History", height=500)with gr.Row():# Container for input and send buttonwith gr.Box(elem_id="input_container"):user_input = gr.Textbox(placeholder="Type your message here...", label=None, lines=1, elem_id="user_input")send_button = gr.Button("📤", elem_id="send_button")# Add CSS for styling the input container and placing the button insidedemo.css = """#input_container {display: flex;align-items: center;border: 1px solid #ccc;border-radius: 8px;padding: 5px;}#user_input {flex-grow: 1;border: none;outline: none;padding: 8px;}#send_button {width: 40px;height: 40px;background-color: #007bff;color: white;border: none;border-radius: 50%;display: flex;justify-content: center;align-items: center;cursor: pointer;}#send_button:hover {background-color: #0056b3;}"""
app.py+27-9