Spaces:
Sleeping
Sleeping
Update app.py
Browse files150 unmodified lines1511521531541551561571581596 unmodified lines166167168169170171172173174150 unmodified linesdef init():return [{"role": "assistant", "content": WELCOME_MESSAGE_EN}], 0, "", [], False, [], 0with gr.Blocks(css=""".send-btn {background-color: #25D366 !important; color: white !important; border-radius: 24px; padding: 8px 20px; height: 48px; width: 60px; margin-left: 8px;}""") as demo:gr.HTML("""<script>const waitForChatbox = () => {const chatbox = document.getElementById("chatbox");if (chatbox) {6 unmodified lines}};waitForChatbox();</script>""")chatbot = gr.Chatbot(elem_id="chatbox", avatar_images=["user_avatar.jpg", "bot_avatar.png"], bubble_full_width=False, height=500, type="messages")with gr.Row():user_input = gr.Textbox(show_label=False, placeholder="Type your message here and press send...", container=True, scale=10)150 unmodified lines1511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921936 unmodified lines200201202203204205206207208209210211212213214215216217218150 unmodified linesdef init():return [{"role": "assistant", "content": WELCOME_MESSAGE_EN}], 0, "", [], False, [], 0with gr.Blocks(css="""#chatbox .message.user {background-color: #DCF8C6 !important;}#chatbox .message.assistant {background-color: #ffffff !important;}#chatbox .avatar-container {width: 64px !important;height: 64px !important;min-width: 64px !important;min-height: 64px !important;background-size: 100% 100% !important;background-position: center center !important;border-radius: 50% !important;padding: 0 !important;margin: 0 !important;border: none !important;box-shadow: none !important;background-color: transparent !important;}.send-btn {background-color: #25D366 !important;color: white;border: none;border-radius: 24px;font-size: 20px;padding: 8px 20px;height: 48px;width: 60px;margin-left: 8px;}""") as demo:gr.HTML("""<script>const waitForChatbox = () => {const chatbox = document.getElementById("chatbox");if (chatbox) {6 unmodified lines}};waitForChatbox();</script>""")chatbot = gr.Chatbot(elem_id="chatbox",label="",avatar_images=["user_avatar.jpg", "bot_avatar.png"],bubble_full_width=False,height=500,show_copy_button=False,type="messages")with gr.Row():user_input = gr.Textbox(show_label=False, placeholder="Type your message here and press send...", container=True, scale=10)
app.py+49-5