AmpParth commited on
Commit
36a5a0e
·
verified ·
1 Parent(s): 58d93a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -237,7 +237,7 @@ def transcription(file):
237
  buffer_data = file.file.read()
238
 
239
  payload = {"buffer": buffer_data}
240
- options = PrerecordedOptions(model="nova-2", smart_format=True, diarize=True)
241
  response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)
242
  return response.results.channels[0].alternatives[0].paragraphs.transcript
243
  except Exception as e:
 
237
  buffer_data = file.file.read()
238
 
239
  payload = {"buffer": buffer_data}
240
+ options = PrerecordedOptions(model="nova-2", smart_format=True, diarize=True, redact=["pci","ssn"])
241
  response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)
242
  return response.results.channels[0].alternatives[0].paragraphs.transcript
243
  except Exception as e: