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