Update app.py
Browse files
app.py
CHANGED
|
@@ -61,13 +61,13 @@ def compare_samples(path1, path2):
|
|
| 61 |
|
| 62 |
|
| 63 |
inputs = [
|
| 64 |
-
gr.
|
| 65 |
-
gr.
|
| 66 |
]
|
| 67 |
|
| 68 |
upload_inputs = [
|
| 69 |
-
gr.
|
| 70 |
-
gr.
|
| 71 |
]
|
| 72 |
|
| 73 |
description = (
|
|
@@ -91,7 +91,7 @@ examples = [
|
|
| 91 |
microphone_interface = gr.Interface(
|
| 92 |
fn=compare_samples,
|
| 93 |
inputs=inputs,
|
| 94 |
-
outputs=gr.
|
| 95 |
title="Speaker Verification with TitaNet Embeddings",
|
| 96 |
description=description,
|
| 97 |
article=article,
|
|
@@ -105,7 +105,7 @@ microphone_interface = gr.Interface(
|
|
| 105 |
upload_interface = gr.Interface(
|
| 106 |
fn=compare_samples,
|
| 107 |
inputs=upload_inputs,
|
| 108 |
-
outputs=gr.
|
| 109 |
title="Speaker Verification with TitaNet Embeddings",
|
| 110 |
description=description,
|
| 111 |
article=article,
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
inputs = [
|
| 64 |
+
gr.Audio(sources=["microphone"], type="filepath", label="Speaker #1"),
|
| 65 |
+
gr.Audio(sources=["microphone"], type="filepath", label="Speaker #2"),
|
| 66 |
]
|
| 67 |
|
| 68 |
upload_inputs = [
|
| 69 |
+
gr.Audio(sources=["upload"], type="filepath", label="Speaker #1"),
|
| 70 |
+
gr.Audio(sources=["upload"], type="filepath", label="Speaker #2"),
|
| 71 |
]
|
| 72 |
|
| 73 |
description = (
|
|
|
|
| 91 |
microphone_interface = gr.Interface(
|
| 92 |
fn=compare_samples,
|
| 93 |
inputs=inputs,
|
| 94 |
+
outputs=gr.HTML(label=""),
|
| 95 |
title="Speaker Verification with TitaNet Embeddings",
|
| 96 |
description=description,
|
| 97 |
article=article,
|
|
|
|
| 105 |
upload_interface = gr.Interface(
|
| 106 |
fn=compare_samples,
|
| 107 |
inputs=upload_inputs,
|
| 108 |
+
outputs=gr.HTML(label=""),
|
| 109 |
title="Speaker Verification with TitaNet Embeddings",
|
| 110 |
description=description,
|
| 111 |
article=article,
|