Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
|
|
|
|
3 |
|
4 |
iface = gr.Interface(
|
5 |
-
fn=
|
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**.",
|
|
|
1 |
import gradio as gr
|
2 |
+
import module
|
3 |
+
|
4 |
+
sej = module.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"), gr.outputs.Textbox(label="Chat History")],
|
10 |
description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.",
|