File size: 394 Bytes
4c01656
4a4624f
a0decb6
4a4624f
f8039e2
9727939
4a4624f
a292523
b361de7
a292523
 
 
4c01656
a292523
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)