ierhon commited on
Commit
147d2ba
1 Parent(s): 228e5ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def train(message: str, epochs: int, learning_rate: float, emb_size: int, inp_le
24
  tokenizer.fit_on_texts(list(dset.keys()))
25
 
26
  vocab_size = len(tokenizer.word_index) + 1
27
- data_hash = hash_str(data)+".keras"
28
  if data_hash in os.listdir("cache"):
29
  model = load_model("cache/"+data_hash)
30
  else:
 
24
  tokenizer.fit_on_texts(list(dset.keys()))
25
 
26
  vocab_size = len(tokenizer.word_index) + 1
27
+ data_hash = hash_str(data)+str(epochs)+str(learning_rate)+str(emb_size)+str(inp_len)+".keras"
28
  if data_hash in os.listdir("cache"):
29
  model = load_model("cache/"+data_hash)
30
  else: