Spaces:
Runtime error
Runtime error
File size: 460 Bytes
4c01656 d6ae8cb a0decb6 c5aab49 4c01656 a292523 a0decb6 a292523 4c01656 a292523 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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) |