File size: 566 Bytes
97f6371
 
 
9a59da9
c838094
18200eb
c838094
 
 
9a59da9
c838094
9a59da9
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr


with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
    chatbot = gr.Chatbot(elem_id="chatbot",show_label=False)
    with gr.Row() as input_raws:
        with gr.Column(scale=0.6):
            txt = gr.Textbox(show_label=False).style(container=False)
        with gr.Column(scale=0.20, min_width=0):
            run = gr.Button("🏃‍♂️Run")
        with gr.Column(scale=0.20, min_width=0):
            clear = gr.Button("🔄Clear️")
 
demo.queue(concurrency_count=10).launch(server_name="0.0.0.0", server_port=7860)