Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|