Commit aa3c782d authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

implemented main function

parent 448503c7
......@@ -55,3 +55,12 @@ def Keyword_Spotting_service():
_Keyword_Spotting_Service.model = keras.models.load_model(MODEL_PATH)
return _Keyword_Spotting_Service._instance
if __name__ == "__main__":
kss = Keyword_Spotting_service()
keyword1 = kss.predict("test/0ab3b47d_nohash_0.wav")
keyword2 = kss.predict("test/blu7.wav")
print(f"Predicted Keywords: {keyword1}")
print(f"Predicted Keywords: {keyword2}")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment