Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
-
from Sejarah import Sejarah
|
3 |
|
4 |
-
sej = Sejarah()
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
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**.",
|