Commit
·
dffcb4b
1
Parent(s):
8d9d859
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,9 @@ title = "Word Error Rate Calculator"
|
|
| 11 |
description = '''A simple application to quickly calculate the Word Error Rate (WER)'''
|
| 12 |
|
| 13 |
# Define the input and output interfaces
|
| 14 |
-
input_reference = gr.
|
| 15 |
-
input_hypothesis = gr.
|
| 16 |
-
output_wer = gr.
|
| 17 |
|
| 18 |
iface = gr.Interface(
|
| 19 |
fn = word_error_rate,
|
|
|
|
| 11 |
description = '''A simple application to quickly calculate the Word Error Rate (WER)'''
|
| 12 |
|
| 13 |
# Define the input and output interfaces
|
| 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.Textbox(label="Word Error Rate")
|
| 17 |
|
| 18 |
iface = gr.Interface(
|
| 19 |
fn = word_error_rate,
|