Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,7 +196,7 @@ def transcription(file):
|
|
| 196 |
buffer_data = file.file.read()
|
| 197 |
|
| 198 |
payload = {"buffer": buffer_data}
|
| 199 |
-
options = PrerecordedOptions(model="nova-2", diarize=True)
|
| 200 |
response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)
|
| 201 |
return response.results.channels[0].alternatives[0].paragraphs.transcript
|
| 202 |
except Exception as e:
|
|
|
|
| 196 |
buffer_data = file.file.read()
|
| 197 |
|
| 198 |
payload = {"buffer": buffer_data}
|
| 199 |
+
options = PrerecordedOptions(model="nova-2", smart_format=True, diarize=True)
|
| 200 |
response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)
|
| 201 |
return response.results.channels[0].alternatives[0].paragraphs.transcript
|
| 202 |
except Exception as e:
|