Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
-
#
|
6 |
-
|
7 |
-
# inputs=gr.inputs.Textbox(label="Please Type Your Question Here: "),
|
8 |
-
# outputs=[gr.outputs.Textbox(label="Answers"), gr.outputs.Textbox(label="Chat History")],
|
9 |
-
# description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.",
|
10 |
-
# allow_flagging = False
|
11 |
-
# )
|
12 |
-
|
13 |
-
# #Demo for the chatbot
|
14 |
-
# iface.launch(inline = False)
|
|
|
1 |
import gradio as gr
|
2 |
+
import Sejarah
|
3 |
|
4 |
+
iface = gr.Interface(
|
5 |
+
fn=Sejarah.interface(),
|
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**.",
|
9 |
+
allow_flagging = False
|
10 |
+
)
|
11 |
|
12 |
+
#Demo for the chatbot
|
13 |
+
iface.launch(inline = False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|