Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def gradio_similarity_interface(original_audio, user_audio):
|
|
106 |
# Create Gradio app for full-context ASR
|
107 |
full_context_demo = gr.Interface(
|
108 |
fn=gradio_full_context_interface,
|
109 |
-
inputs=gr.Audio(
|
110 |
outputs="text",
|
111 |
title="Full-Context ASR Demo"
|
112 |
)
|
@@ -114,7 +114,7 @@ full_context_demo = gr.Interface(
|
|
114 |
# Create Gradio app for streaming ASR
|
115 |
streaming_demo = gr.Interface(
|
116 |
fn=streaming_asr,
|
117 |
-
inputs=["state", gr.Audio(
|
118 |
outputs=["state", "text"],
|
119 |
live=True,
|
120 |
title="Streaming ASR Demo"
|
@@ -124,8 +124,8 @@ streaming_demo = gr.Interface(
|
|
124 |
similarity_demo = gr.Interface(
|
125 |
fn=gradio_similarity_interface,
|
126 |
inputs=[
|
127 |
-
gr.Audio(
|
128 |
-
gr.Audio(
|
129 |
],
|
130 |
outputs="json",
|
131 |
title="Audio Transcription and Similarity Checker"
|
|
|
106 |
# Create Gradio app for full-context ASR
|
107 |
full_context_demo = gr.Interface(
|
108 |
fn=gradio_full_context_interface,
|
109 |
+
inputs=gr.Audio(type="numpy", source="microphone"),
|
110 |
outputs="text",
|
111 |
title="Full-Context ASR Demo"
|
112 |
)
|
|
|
114 |
# Create Gradio app for streaming ASR
|
115 |
streaming_demo = gr.Interface(
|
116 |
fn=streaming_asr,
|
117 |
+
inputs=["state", gr.Audio(type="numpy", streaming=True)],
|
118 |
outputs=["state", "text"],
|
119 |
live=True,
|
120 |
title="Streaming ASR Demo"
|
|
|
124 |
similarity_demo = gr.Interface(
|
125 |
fn=gradio_similarity_interface,
|
126 |
inputs=[
|
127 |
+
gr.Audio(type="numpy", label="Original Audio"),
|
128 |
+
gr.Audio(type="numpy", label="User Audio")
|
129 |
],
|
130 |
outputs="json",
|
131 |
title="Audio Transcription and Similarity Checker"
|