Spaces:
Paused
Paused
Commit ·
7080e6e
1
Parent(s): d99a36b
update: basic style requirments
Browse files435 unmodified lines436437438439440441442443444435 unmodified linesdef create_chat_interface():"""Create and configure the chat interface."""with gr.Blocks() as demo:chatbot = gr.Chatbot()msg = gr.Textbox()transcript_processor_state = gr.State() # maintain state of imp thingscall_id_state = gr.State()colab_id_state = gr.State()435 unmodified lines436437438439440441442443444445446447448449450451452453454455435 unmodified linesdef create_chat_interface():"""Create and configure the chat interface."""# write css for chatbot_box have no padding on top, left, and right from screen bordercss = """.gradio-container {padding-top: 0px !important;padding-left: 0px !important;padding-right: 0px !important;padding: 0px !important;margin: 0px !important;}"""with gr.Blocks(fill_height=True, fill_width=True, css=css) as demo:chatbot = gr.Chatbot(elem_id="chatbot_box", layout="bubble", show_label=False)msg = gr.Textbox(elem_id="chatbot_textbox", show_label=False)transcript_processor_state = gr.State() # maintain state of imp thingscall_id_state = gr.State()colab_id_state = gr.State()
app.py+14-3