import gradio as gr from Sejarah import Sejarah sej = Sejarah() iface = gr.Interface( fn=sej.interface, inputs=gr.inputs.Textbox(label="Please Type Your Question Here: "), outputs=[gr.outputs.Textbox(label="Answers")], description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.", allow_flagging = False ) iface.launch(inline = False)