Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -373,39 +373,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 373 |
|
| 374 |
with gr.Tabs():
|
| 375 |
|
| 376 |
-
|
| 377 |
-
gr.Markdown("""
|
| 378 |
-
Upload audio interviews to auto-transcribe with speaker identification.
|
| 379 |
-
Outputs DOCX files ready for analysis.
|
| 380 |
-
""")
|
| 381 |
-
|
| 382 |
-
with gr.Row():
|
| 383 |
-
audio_input = gr.File(
|
| 384 |
-
label="Upload Audio Files",
|
| 385 |
-
file_types=[".mp3", ".wav", ".m4a", ".flac"],
|
| 386 |
-
file_count="multiple"
|
| 387 |
-
)
|
| 388 |
-
num_speakers_input = gr.Slider(
|
| 389 |
-
minimum=1,
|
| 390 |
-
maximum=5,
|
| 391 |
-
value=2,
|
| 392 |
-
step=1,
|
| 393 |
-
label="Number of Speakers"
|
| 394 |
-
)
|
| 395 |
-
|
| 396 |
-
transcribe_btn = gr.Button("🎙️ Transcribe Audio", variant="primary")
|
| 397 |
-
transcribe_status = gr.Textbox(label="Status", lines=10)
|
| 398 |
-
transcript_files = gr.File(label="Download Transcripts", file_count="multiple")
|
| 399 |
-
|
| 400 |
-
transcribe_btn.click(
|
| 401 |
-
fn=preprocess_audio,
|
| 402 |
-
inputs=[audio_input, num_speakers_input],
|
| 403 |
-
outputs=[transcript_files, transcribe_status]
|
| 404 |
-
)
|
| 405 |
-
|
| 406 |
-
gr.Markdown("""
|
| 407 |
-
**Next:** Download transcripts, then go to "Transcript Analysis" tab to analyze them.
|
| 408 |
-
""")
|
| 409 |
|
| 410 |
|
| 411 |
|
|
|
|
| 373 |
|
| 374 |
with gr.Tabs():
|
| 375 |
|
| 376 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
|
| 378 |
|
| 379 |
|