Spaces:
Sleeping
Sleeping
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) |