File size: 509 Bytes
4c01656
4a4624f
a0decb6
4a4624f
f8039e2
9727939
4a4624f
7a7d875
 
b53bbba
a292523
 
4c01656
7a7d875
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="Tanya saya tentang sejarah Malaysia (Ask me about the history of Malaysia): "),
    outputs=[gr.outputs.Textbox(label="Jawapan (Answers)"),gr.outputs.Textbox(label="Kandungan (Content)")],
    description="## Question Answering in Malaysian Language (History)\n\n(**English** and **Bahasa Malaysia**)",
    allow_flagging = False
)

iface.launch(inline = True)