Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -322,7 +322,8 @@ class DemandForecasting:
|
|
| 322 |
audio_file= open(audio_path, "rb")
|
| 323 |
transcription = self.client.audio.transcriptions.create(
|
| 324 |
model="whisper-1",
|
| 325 |
-
file=audio_file
|
|
|
|
| 326 |
print(transcription.text)
|
| 327 |
return transcription.text
|
| 328 |
|
|
|
|
| 322 |
audio_file= open(audio_path, "rb")
|
| 323 |
transcription = self.client.audio.transcriptions.create(
|
| 324 |
model="whisper-1",
|
| 325 |
+
file=audio_file,
|
| 326 |
+
language="en")
|
| 327 |
print(transcription.text)
|
| 328 |
return transcription.text
|
| 329 |
|