sengzi commited on
Commit
9727939
·
1 Parent(s): f8039e2

Update app.py

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