Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
17 |
-
return response[
|
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")
|