Rehman1603 commited on
Commit
9e588c3
·
1 Parent(s): 759dc9e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from ChatBot import chat_clone
3
+
4
+ block=gr.Blocks()
5
+
6
+ with block:
7
+ gr.Markdown("<h1>AI Chat bot for Student Career Consuling</h1>")
8
+ chatbot=gr.Chatbot()
9
+ message=gr.Textbox(placeholder="Enter your Query")
10
+ state=gr.State()
11
+ send=gr.Button("Send")
12
+ send.click(chat_clone,inputs=[message,state],outputs=[chatbot,state])
13
+ block.launch(debug=True)
14
+