Persival123 commited on
Commit
a9ec8eb
1 Parent(s): f7634d9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -17
app.py CHANGED
@@ -363,12 +363,11 @@ demo.encrypt = False
363
 
364
 
365
  with demo:
366
- with gr.Tab("Whisper speaker diarization"):
367
  gr.Markdown('''
368
  <div>
369
- <h1 style='text-align: center'>Whisper speaker diarization</h1>
370
- This space uses Whisper models from <a href='https://github.com/openai/whisper' target='_blank'><b>OpenAI</b></a> with <a href='https://github.com/guillaumekln/faster-whisper' target='_blank'><b>CTranslate2</b></a> which is a fast inference engine for Transformer models to recognize the speech (4 times faster than original openai model with same accuracy)
371
- and ECAPA-TDNN model from <a href='https://github.com/speechbrain/speechbrain' target='_blank'><b>SpeechBrain</b></a> to encode and clasify speakers
372
  </div>
373
  ''')
374
 
@@ -376,21 +375,10 @@ with demo:
376
  gr.Markdown('''
377
  ### Transcribe youtube link using OpenAI Whisper
378
  ##### 1. Using Open AI's Whisper model to seperate audio into segments and generate transcripts.
379
- ##### 2. Generating speaker embeddings for each segments.
380
- ##### 3. Applying agglomerative clustering on the embeddings to identify the speaker for each segment.
381
  ''')
382
 
383
- with gr.Row():
384
- gr.Markdown('''
385
- ### You can test by following examples:
386
- ''')
387
- examples = gr.Examples(examples=
388
- [ "https://www.youtube.com/watch?v=j7BfEzAFuYc&t=32s",
389
- "https://www.youtube.com/watch?v=-UX0X45sYe4",
390
- "https://www.youtube.com/watch?v=7minSgqi-Gw"],
391
- label="Examples", inputs=[youtube_url_in])
392
-
393
-
394
  with gr.Row():
395
  with gr.Column():
396
  youtube_url_in.render()
 
363
 
364
 
365
  with demo:
366
+ with gr.Tab("Consult AI"):
367
  gr.Markdown('''
368
  <div>
369
+ <h1 style='text-align: center'>Your very own AI Scribe</h1>
370
+ This model uses Open AI and a modified Whisper model to produce A SOAP note using only your patient conversations! So give it a try!
 
371
  </div>
372
  ''')
373
 
 
375
  gr.Markdown('''
376
  ### Transcribe youtube link using OpenAI Whisper
377
  ##### 1. Using Open AI's Whisper model to seperate audio into segments and generate transcripts.
378
+ ##### 2. Using Open AI to analyse the transcript in terms of your chosen profession.
379
+ ##### 3. Finally ooutputting your generated SOAP note specilized for your profession and for the patient in just 5 minutes!( Give or take)
380
  ''')
381
 
 
 
 
 
 
 
 
 
 
 
 
382
  with gr.Row():
383
  with gr.Column():
384
  youtube_url_in.render()