TYF-1181203428 / app.py
sengzi's picture
Update app.py
7a7d875
raw
history blame
509 Bytes
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)