Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def transcribe_and_diarize(audio_file, num_speakers=2):
|
|
| 73 |
iface = gr.Interface(
|
| 74 |
fn=transcribe_and_diarize,
|
| 75 |
inputs=[
|
| 76 |
-
gr.Audio(
|
| 77 |
gr.Number(value=2, label="Number of Speakers")
|
| 78 |
],
|
| 79 |
outputs="text",
|
|
@@ -81,4 +81,4 @@ iface = gr.Interface(
|
|
| 81 |
description="Upload an audio file to get a transcription with speaker diarization."
|
| 82 |
)
|
| 83 |
|
| 84 |
-
iface.launch()
|
|
|
|
| 73 |
iface = gr.Interface(
|
| 74 |
fn=transcribe_and_diarize,
|
| 75 |
inputs=[
|
| 76 |
+
gr.Audio(type="file", label="Upload Audio File"),
|
| 77 |
gr.Number(value=2, label="Number of Speakers")
|
| 78 |
],
|
| 79 |
outputs="text",
|
|
|
|
| 81 |
description="Upload an audio file to get a transcription with speaker diarization."
|
| 82 |
)
|
| 83 |
|
| 84 |
+
iface.launch()
|