Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from Sejarah import Sejarah | |
| sej = Sejarah() | |
| iface = gr.Interface( | |
| fn=sej.interface, | |
| inputs=gr.inputs.Textbox(label="Tanya saya tentang sejarah Malaysia (Ask me about the history of Malaysia): "), | |
| outputs=[gr.outputs.Textbox(label="Jawapan (Answers)"),gr.outputs.Textbox(label="Konteks (Context)")], | |
| description="## Question Answering in Malaysian Language (History)\n\n(**English** and **Bahasa Malaysia**)", | |
| allow_flagging = False | |
| ) | |
| iface.launch(inline = True) |