abdullah10 commited on
Commit
ed09169
·
1 Parent(s): 5bd8642

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ from utils import generate_response
4
+
5
+ with gr.Blocks() as demo:
6
+
7
+ chatbot = gr.Chatbot(label='Network Design Chatbot', height=600)
8
+ msg = gr.Textbox()
9
+ clear = gr.ClearButton([msg, chatbot])
10
+
11
+ msg.submit(generate_response, [msg, chatbot], [msg, chatbot])
12
+
13
+ demo.launch()