sengzi commited on
Commit
a0decb6
·
1 Parent(s): cdbe571

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,8 +1,10 @@
1
  import gradio as gr
2
- import Sejarah
 
 
3
 
4
  iface = gr.Interface(
5
- fn=Sejarah.interface(),
6
  inputs=gr.inputs.Textbox(label="Please Type Your Question Here: "),
7
  outputs=[gr.outputs.Textbox(label="Answers"), gr.outputs.Textbox(label="Chat History")],
8
  description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.",
 
1
  import gradio as gr
2
+ import module
3
+
4
+ sej = module.Sejarah()
5
 
6
  iface = gr.Interface(
7
+ fn=sej.interface(),
8
  inputs=gr.inputs.Textbox(label="Please Type Your Question Here: "),
9
  outputs=[gr.outputs.Textbox(label="Answers"), gr.outputs.Textbox(label="Chat History")],
10
  description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.",