Update app.py
Browse files14 unmodified lines1516171819202120 unmodified lines42434445464748495051525314 unmodified linestorch_dtype=torch.bfloat16)# Load the audio fileaudio, sr = librosa.load(audio_file, sr=16000)# Print audio properties for debugging20 unmodified linesiface = gr.Interface(fn=transcribe_and_respond,inputs=gr.Audio(sources="microphone", type="filepath"),outputs="text",title="ShukaNotesApp",description="Enter your Audio from meetings here and the model will share the key take aways.",live=True)if __name__ == "__main__":iface.launch()14 unmodified lines1516171819202120 unmodified lines42434445464748495051525354555614 unmodified linestorch_dtype=torch.bfloat16)# Load the audio file at 16kHzaudio, sr = librosa.load(audio_file, sr=16000)# Print audio properties for debugging20 unmodified linesiface = gr.Interface(fn=transcribe_and_respond,# Allow both file upload and microphone input by providing a list of sources.inputs=gr.Audio(sources=["upload", "microphone"], type="filepath"),outputs=[gr.Textbox(label="Transcript"),gr.File(label="Download Transcript")],title="ShukaNotesApp",description="Meeting Notes for Indian Offices Discussions. \n Enter your audio from meetings here and the model will share the key takeaways.",live=True)if __name__ == "__main__":iface.launch()
app.py+8-5