Update app.py
Browse files20 unmodified lines21222324252627282930313233343536373839404142434445464748495051522 unmodified lines5556575859606162636420 unmodified linesgr.Markdown("# Chatbot Interface")# Define the chat interfacewith gr.Row():# Chatbot componentchatbot_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;2 unmodified linescolor: white;border: none;border-radius: 50%;display: flex;justify-content: center;align-items: center;cursor: pointer;}#send_button:hover {background-color: #0056b3;20 unmodified lines212223242526272829303132333435363738394041424344454647482 unmodified lines5152535455565758596020 unmodified linesgr.Markdown("# Chatbot Interface")# Define the chat interfacechatbot_component = gr.Chatbot(type="messages", label="Chat History", height=500)with gr.Row(elem_id="input_container"):# Input fielduser_input = gr.Textbox(placeholder="Type your message here...", label=None, lines=1, elem_id="user_input")# Send buttonsend_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;gap: 5px;}#user_input {flex-grow: 1;border: 1px solid #ccc;border-radius: 8px;padding: 10px;}#send_button {width: 40px;2 unmodified linescolor: white;border: none;border-radius: 50%;cursor: pointer;display: flex;justify-content: center;align-items: center;}#send_button:hover {background-color: #0056b3;
app.py+13-17