Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,12 @@ import gradio as gr
|
|
3 |
|
4 |
# sej = Sejarah()
|
5 |
|
6 |
-
def
|
7 |
return question
|
8 |
|
9 |
-
iface = gr.
|
10 |
-
(
|
11 |
# fn=sej.interface(),
|
12 |
-
fn=
|
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**.",
|