Spaces:
Sleeping
Sleeping
Upload app.py
Browse files450 unmodified lines451452453454455456457450 unmodified linesreturn existing_text or ""try:with open(audio_path, "rb") as f:result = whisper_client.automatic_speech_recognition(f)# Compatible toutes versions huggingface_hubif hasattr(result, "text"):transcript = result.text.strip()450 unmodified lines451452453454455456457458450 unmodified linesreturn existing_text or ""try:with open(audio_path, "rb") as f:audio_bytes = f.read()result = whisper_client.automatic_speech_recognition(audio_bytes)# Compatible toutes versions huggingface_hubif hasattr(result, "text"):transcript = result.text.strip()
app.py+2-1