2 unmodified lines345667892 unmodified lines
# Load model - use the correct Hugging Face model ID# Remove the '/spaces/' prefix and use just the username/model-name formatclassifier = pipeline("audio-classification", model="Hnin/Audio_Classification_On_Key_spotting")classifier = pipeline("audio-classification", model="Hnin/wav2vec2-base-finetuned-ks")
def predict(audio): if audio is None:app.py+1-1