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