File size: 507 Bytes
5248357
 
 
 
 
 
 
 
0d6e736
5248357
 
 
 
 
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="Konteks (Context)")],
    description="## Question Answering in Malaysian Language (History)\n\n(**English** and **Bahasa Malaysia**)",
    allow_flagging = False
)

iface.launch(inline = True)