testing / app.py
mery22's picture
Create app.py
b48a9c3 verified
raw
history blame
239 Bytes
import gradio as gr
def qna_chatbot(message, history):
res = qa(message)
answer = res["result"]
return answer
chat_interface = gr.ChatInterface(qna_chatbot)
if __name__ == "__main__":
chat_interface.launch(debug=True)