Commit
·
b11f488
1
Parent(s):
1bce638
fix syntax issue
Browse filesi think it will work
- backend/audio_to_tgt.py +3 -0
backend/audio_to_tgt.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
def src_audio_to_eng_translator(audio_file_input):
|
2 |
transcription = client.audio.translations.create(
|
3 |
model="whisper-1",
|
|
|
1 |
+
from openai import OpenAI
|
2 |
+
client = OpenAI()
|
3 |
+
|
4 |
def src_audio_to_eng_translator(audio_file_input):
|
5 |
transcription = client.audio.translations.create(
|
6 |
model="whisper-1",
|