Update app.py
Browse files130 unmodified lines131132133134135136137134135136137138130 unmodified lines
os.unlink(temp_file_path)
# Create a Blob object from the audio data audio_blob = genai.types.Blob(data=audio_data, mime_type="audio/wav") response = model.generate_content(audio_blob) # Use the audio data directly with the Gemini model response = model.generate_content(audio_data) logger.info("Transcription completed successfully") return response.text except Exception as e:app.py+2-4