From a41c8f0de52612750f507db69e2b4be386629916 Mon Sep 17 00:00:00 2001 From: Sa Phyo Thu Htet Date: Tue, 30 Jul 2024 11:36:37 +0630 Subject: [PATCH] Update utilities.py --- utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities.py b/utilities.py index 27ad807..e0abdcf 100644 --- a/utilities.py +++ b/utilities.py @@ -22,7 +22,7 @@ def multilingual_semi_syllable_break(user_input): result = re.sub(r" +", " ", result) return result -"""" Zawgyi Unicode Detection""" +"""" Zawgyi Unicode Detection @st.cache_resource def load_zawgyi_unicode_detection_model(): model = tf.keras.models.load_model("model/zawgyi-unicode-detection/zawgyiunicodedetectionstreamlit.h5") @@ -40,7 +40,7 @@ def zawgyi_unicode_detection(input:str)->str: testing_sequences = zawgyi_unicode_tokenizer.texts_to_sequences([syllable_tokenization(input)]) testing_padded = pad_sequences(testing_sequences,maxlen=150, truncating='post',padding='post') return "Unicode Encoding" if model.predict(testing_padded)[0][0]>=0.5 else "Zawgyi Encoding" - +""" """ Keywords Detection """