Spaces:
Sleeping
Sleeping
aahmed10202
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ st.write("Upload a .wav, .mp3, or .flac audio file, and get the transcription.")
|
|
20 |
my_key = st.text_input('Enter your Hugging Face API Key', type='password')
|
21 |
|
22 |
# File uploader for audio files
|
23 |
-
|
24 |
|
25 |
if my_key: # Proceed only if the API key is provided
|
26 |
API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo"
|
|
|
20 |
my_key = st.text_input('Enter your Hugging Face API Key', type='password')
|
21 |
|
22 |
# File uploader for audio files
|
23 |
+
uploaded = st.file_uploader("Choose an audio file", type=["mp3", "wav", "flac"], accept_multiple_files=True)
|
24 |
|
25 |
if my_key: # Proceed only if the API key is provided
|
26 |
API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo"
|