Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created March 15, 2021 06:53
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 AyishaR/1d3b09c57f3fd872b8faecc699eebf4f to your computer and use it in GitHub Desktop.
Save AyishaR/1d3b09c57f3fd872b8faecc699eebf4f to your computer and use it in GitHub Desktop.
background = spectrogramOp(np.random.random((desired_samples)))
silence = spectrogramOp(np.zeros((desired_samples)))
background_out, silence_out = model.predict(np.array([background, silence]))
print("Predicted ", textLabel(background_out.argmax()), "on random audio with vector", background_out)
print("Predicted ", textLabel(silence_out.argmax()), "on null audio with vector", silence_out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment