Hammad712 commited on
Commit
f58b608
·
verified ·
1 Parent(s): e114bc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(source="microphone", type="numpy"),
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(source="microphone", type="numpy", streaming=True)],
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(source="upload", type="numpy", label="Original Audio"),
128
- gr.Audio(source="upload", type="numpy", label="User 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"