File size: 306 Bytes
bf27031
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr

from utils import generate_response

with gr.Blocks() as demo:

    chatbot = gr.Chatbot(label='Network Design Chatbot', height=600)
    msg = gr.Textbox()
    clear = gr.ClearButton([msg, chatbot])
    
    msg.submit(generate_response, [msg, chatbot], [msg, chatbot])

demo.launch()