AmpParth commited on
Commit
f83400b
·
verified ·
1 Parent(s): e0e370f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -257,7 +257,7 @@ def transcription(file):
257
  buffer_data = file.file.read()
258
 
259
  payload = {"buffer": buffer_data}
260
- options = PrerecordedOptions(model="nova-2", smart_format=True, diarize=True)
261
  response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)
262
  return response.results.channels[0].alternatives[0].paragraphs.transcript
263
  except Exception as e:
 
257
  buffer_data = file.file.read()
258
 
259
  payload = {"buffer": buffer_data}
260
+ options = PrerecordedOptions(model="nova-2", smart_format=True, diarize=True, redact = ['SSN'])
261
  response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)
262
  return response.results.channels[0].alternatives[0].paragraphs.transcript
263
  except Exception as e: