Spaces:
Sleeping
Sleeping
Commit
·
181d86a
1
Parent(s):
211d2b8
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ 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 |
-
|
18 |
|
19 |
iface = gr.Interface(
|
20 |
fn = word_error_rate,
|
@@ -22,6 +22,6 @@ iface = gr.Interface(
|
|
22 |
outputs = output_wer,
|
23 |
title = title,
|
24 |
description = description,
|
25 |
-
examples =
|
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 |
+
example = [["Have a great day", "Have a good day"],"0.25"]
|
18 |
|
19 |
iface = gr.Interface(
|
20 |
fn = word_error_rate,
|
|
|
22 |
outputs = output_wer,
|
23 |
title = title,
|
24 |
description = description,
|
25 |
+
examples = example
|
26 |
)
|
27 |
iface.launch()
|