napatswift commited on
Commit
303b266
1 Parent(s): 0a729b6

Update sp model

Browse files
app.py CHANGED
@@ -6,9 +6,9 @@ MAX_SEQUENCE_LENGTH = 64
6
  model = tf.keras.models.load_model('saved_model/mtr-model')
7
 
8
  eng_tokenizer = keras_nlp.tokenizers.SentencePieceTokenizer(
9
- 'saved_model/spmodel/english.model')
10
  tha_tokenizer = keras_nlp.tokenizers.SentencePieceTokenizer(
11
- 'saved_model/spmodel/thai.model')
12
 
13
  def decode_sequences(input_sentences):
14
  batch_size = tf.shape(input_sentences)[0]
 
6
  model = tf.keras.models.load_model('saved_model/mtr-model')
7
 
8
  eng_tokenizer = keras_nlp.tokenizers.SentencePieceTokenizer(
9
+ 'saved_model/spmodel/en.model')
10
  tha_tokenizer = keras_nlp.tokenizers.SentencePieceTokenizer(
11
+ 'saved_model/spmodel/th.model')
12
 
13
  def decode_sequences(input_sentences):
14
  batch_size = tf.shape(input_sentences)[0]
saved_model/spmodel/en.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02bb85aa6b2b5dafae971f4e55202662b16f5637ddd7fd773a3bfa21312a3301
3
+ size 269973
saved_model/spmodel/en.vocab ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbda87d8ac785b259c2980a985717b7e2e126266667a29fb2fcebecf9d9a8218
3
+ size 34066
saved_model/spmodel/th.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b394dbdb57d8a9fecf5274bfdd64fa1020901a5575ab37989070f5dcac81e6b
3
+ size 283887
saved_model/spmodel/th.vocab ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61d0033c277387b3ccf35331322dce96c8892c480bed50b813dc9be907524f08
3
+ size 48022