sengzi commited on
Commit
a292523
1 Parent(s): bf40f79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -1,14 +1,13 @@
1
  import gradio as gr
 
2
 
3
- # def
 
 
 
 
 
 
4
 
5
- # iface = gr.Interface(
6
- # fn=chatbot_interface,
7
- # inputs=gr.inputs.Textbox(label="Please Type Your Question Here: "),
8
- # outputs=[gr.outputs.Textbox(label="Answers"), gr.outputs.Textbox(label="Chat History")],
9
- # description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.",
10
- # allow_flagging = False
11
- # )
12
-
13
- # #Demo for the chatbot
14
- # iface.launch(inline = False)
 
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**.",
9
+ allow_flagging = False
10
+ )
11
 
12
+ #Demo for the chatbot
13
+ iface.launch(inline = False)