Spaces:
Runtime error
Runtime error
carrie
commited on
Commit
•
36895c4
1
Parent(s):
e5d9913
minor updates
Browse files
app.py
CHANGED
@@ -8,19 +8,21 @@ tokenizer = AutoTokenizer.from_pretrained("fangyuan/lfqa_role_classification")
|
|
8 |
|
9 |
|
10 |
def predict(input):
|
11 |
-
"""the prediction function"""
|
12 |
pass
|
13 |
|
14 |
|
15 |
gr.Interface(
|
16 |
fn=predict,
|
17 |
-
inputs=
|
18 |
-
|
|
|
|
|
|
|
19 |
gr.outputs.Textbox(label="Predicted functional role for each sentence"),
|
20 |
],
|
21 |
theme="peach",
|
22 |
-
title="
|
23 |
-
description="Input a question
|
24 |
examples=[
|
25 |
]
|
26 |
).launch(enable_queue=True)
|
|
|
8 |
|
9 |
|
10 |
def predict(input):
|
|
|
11 |
pass
|
12 |
|
13 |
|
14 |
gr.Interface(
|
15 |
fn=predict,
|
16 |
+
inputs=[
|
17 |
+
gr.inputs.Textbox(lines=1, label="Question:"),
|
18 |
+
gr.inputs.Textbox(lines=1, label="Answer:"),
|
19 |
+
],
|
20 |
+
outputs=[
|
21 |
gr.outputs.Textbox(label="Predicted functional role for each sentence"),
|
22 |
],
|
23 |
theme="peach",
|
24 |
+
title="Discourse structure of long-form answer",
|
25 |
+
description="Input a question with its long-form answer to see the predicted discourse structure by our role classifier.",
|
26 |
examples=[
|
27 |
]
|
28 |
).launch(enable_queue=True)
|