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="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) |