Spaces:
Sleeping
Sleeping
Commit
·
b8b10e9
1
Parent(s):
181d86a
Update app.py
Browse files
app.py
CHANGED
@@ -14,14 +14,12 @@ description = '''A simple application to quickly calculate the Word Error Rate (
|
|
14 |
input_reference = gr.Textbox(lines=2, label="Input Reference Text")
|
15 |
input_hypothesis = gr.Textbox(lines=2, label="Input Hypothesis Text")
|
16 |
output_wer = gr.Number(label="Word Error Rate")
|
17 |
-
example = [["Have a great day", "Have a good day"],"0.25"]
|
18 |
|
19 |
iface = gr.Interface(
|
20 |
fn = word_error_rate,
|
21 |
inputs = [input_reference, input_hypothesis],
|
22 |
outputs = output_wer,
|
23 |
title = title,
|
24 |
-
description = description
|
25 |
-
examples = example
|
26 |
)
|
27 |
iface.launch()
|
|
|
14 |
input_reference = gr.Textbox(lines=2, label="Input Reference Text")
|
15 |
input_hypothesis = gr.Textbox(lines=2, label="Input Hypothesis Text")
|
16 |
output_wer = gr.Number(label="Word Error Rate")
|
|
|
17 |
|
18 |
iface = gr.Interface(
|
19 |
fn = word_error_rate,
|
20 |
inputs = [input_reference, input_hypothesis],
|
21 |
outputs = output_wer,
|
22 |
title = title,
|
23 |
+
description = description
|
|
|
24 |
)
|
25 |
iface.launch()
|