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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -1,10 +1,15 @@
1
  import gradio as gr
2
- from Sejarah import Sejarah
3
 
4
- sej = 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")],
10
  description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.",
 
1
  import gradio as gr
2
+ # from Sejarah import Sejarah
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**.",