Ephraimmm commited on
Commit
75284e2
Β·
verified Β·
1 Parent(s): bd627b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -250,7 +250,7 @@ def run_pipeline(wav_path: str):
250
  # ── Format transcript ──────────────────────────────────────────────
251
  sp_ids = sorted({s["speaker"] for s in transcript})
252
  sp_map = {
253
- spk: (["Doctor","Patient"][i] if i < 2 else f"Speaker {i+1}")
254
  for i, spk in enumerate(sp_ids)
255
  }
256
 
@@ -377,7 +377,7 @@ with gr.Blocks(
377
  gr.Markdown("""
378
  ---
379
  <center><sub>⏱ First request takes ~2 min while models load Β·
380
- Built with pyannote Β· Whisper Β· MarianMT Β· ZeroGPU</sub></center>
381
  """)
382
 
383
  btn.click(fn=process_audio, inputs=audio_in, outputs=soap_out)
 
250
  # ── Format transcript ──────────────────────────────────────────────
251
  sp_ids = sorted({s["speaker"] for s in transcript})
252
  sp_map = {
253
+ spk: (["Patient","Doctor"][i] if i < 2 else f"Speaker {i+1}")
254
  for i, spk in enumerate(sp_ids)
255
  }
256
 
 
377
  gr.Markdown("""
378
  ---
379
  <center><sub>⏱ First request takes ~2 min while models load Β·
380
+ Built - Analytics Intelligence. Authors - Uche and Jimmy</sub></center>
381
  """)
382
 
383
  btn.click(fn=process_audio, inputs=audio_in, outputs=soap_out)