Update app.py
Browse files
app.py
CHANGED
@@ -392,7 +392,7 @@ def create_audio_file(filename, audio_data, should_save):
|
|
392 |
else:
|
393 |
st.warning("Audio file not saved.")
|
394 |
|
395 |
-
def process_audio(audio_input, text_input):
|
396 |
if audio_input:
|
397 |
transcription = client.audio.transcriptions.create(
|
398 |
model="whisper-1",
|
|
|
392 |
else:
|
393 |
st.warning("Audio file not saved.")
|
394 |
|
395 |
+
def process_audio(audio_input, text_input=''):
|
396 |
if audio_input:
|
397 |
transcription = client.audio.transcriptions.create(
|
398 |
model="whisper-1",
|