Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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)
|