Spaces:
Runtime error
Runtime error
import gradio as gr | |
import Sejarah | |
iface = gr.Interface( | |
fn=Sejarah.interface(), | |
inputs=gr.inputs.Textbox(label="Please Type Your Question Here: "), | |
outputs=[gr.outputs.Textbox(label="Answers"), gr.outputs.Textbox(label="Chat History")], | |
description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.", | |
allow_flagging = False | |
) | |
#Demo for the chatbot | |
iface.launch(inline = False) |