Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created July 10, 2019 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/7a20b87cba8cc5ec1f650706a96f674f to your computer and use it in GitHub Desktop.
Save aravindpai/7a20b87cba8cc5ec1f650706a96f674f to your computer and use it in GitHub Desktop.
def predict(audio):
prob=model.predict(audio.reshape(1,8000,1))
index=np.argmax(prob[0])
return classes[index]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment