Spaces:
Runtime error
Runtime error
Commit History
-
Update README.mdβ
Verified signatureimport gradio as gr from transformers import pipeline # Load the Whisper model whisper = pipeline("automatic-speech-recognition", model="openai/whisper-base") # Define the function for speech-to-text def transcribe_audio(audio): if audio is None: return "" transcription = whisper(audio)["text"] return transcription # Create a Gradio interface with microphone and file upload options iface = gr.Interface( fn=transcribe_audio, inputs=[ gr.Audio(sources=["microphone", "upload"], type="filepath", label="Record or Upload Audio") ], outputs=gr.Textbox(label="Transcription", placeholder="Transcribed text will appear here..."), title="Speech-to-Text Transcription", description="Record audio using your microphone or upload an audio file to transcribe it.", live=True, # Automatically transcribe when audio is provided ) # Launch the app if __name__ == "__main__": iface.launch()90f7335
-
Update README.md
fec9b19
-
+ choosing model size
03660fe -
+ model size selection
401c5ee -
+ moel size selection
492c47b -
fix auto detect lang not working
2bf0c14
-
Update app.py
5139be1 -
Update app.py
56ba41e -
Update app.pyβ
capitalize langs in listf9e42f2 -
Update app.pyβ
load lang list dynamically from tokenizer9b33f31
-
changed readme
d411901
-
ui changes + translation
840eaf7 -
Merge branch 'main' of https://huggingface.co/spaces/anzorq/openai_whisper_stt
321b38e -
ui changes + translation
91a1a24 -
Update README.md
1c10fb2 -
ui changes
0f1ce4a -
Add requirements file
0c4f2e8 -
Add application file
fd585a0
-
initial commit
31de73c