mery22 commited on
Commit
b48a9c3
1 Parent(s): 444c8f6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ import gradio as gr
4
+ def qna_chatbot(message, history):
5
+
6
+ res = qa(message)
7
+ answer = res["result"]
8
+ return answer
9
+
10
+
11
+ chat_interface = gr.ChatInterface(qna_chatbot)
12
+
13
+ if __name__ == "__main__":
14
+ chat_interface.launch(debug=True)