Alesmikes commited on
Commit
28134a4
·
verified ·
1 Parent(s): a2356f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,8 +13,8 @@ def transcribe(audio_path):
13
  Transkribuje audio soubor pomocí Whisper API.
14
  """
15
  with open(audio_path, "rb") as audio_file:
16
- response = openai.Audio.transcribe("whisper-1", audio_file, filename=audio_path)
17
- return response["text"]
18
 
19
  # Streamlit aplikace
20
  st.title("Audio Transkriptor")
 
13
  Transkribuje audio soubor pomocí Whisper API.
14
  """
15
  with open(audio_path, "rb") as audio_file:
16
+ response = openai.Audio.transcribe("whisper-1", audio_file)
17
+ return response['data']['text']
18
 
19
  # Streamlit aplikace
20
  st.title("Audio Transkriptor")