nithinraok commited on
Commit
c206d86
·
verified ·
1 Parent(s): 97073eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -61,13 +61,13 @@ def compare_samples(path1, path2):
61
 
62
 
63
  inputs = [
64
- gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Speaker #1"),
65
- gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Speaker #2"),
66
  ]
67
 
68
  upload_inputs = [
69
- gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Speaker #1"),
70
- gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Speaker #2"),
71
  ]
72
 
73
  description = (
@@ -91,7 +91,7 @@ examples = [
91
  microphone_interface = gr.Interface(
92
  fn=compare_samples,
93
  inputs=inputs,
94
- outputs=gr.outputs.HTML(label=""),
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.outputs.HTML(label=""),
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,