Spaces:
Sleeping
Sleeping
Extend model hash
Browse files- chatbot_constructor.py +1 -1
chatbot_constructor.py
CHANGED
@@ -43,7 +43,7 @@ def train(message: str = "", epochs: int = 16, learning_rate: float = 0.001, emb
|
|
43 |
|
44 |
vocab_size = len(tokenizer.word_index) + 1
|
45 |
if data_hash is None:
|
46 |
-
data_hash = hash_str(data)+str(epochs)+str(learning_rate)+str(emb_size)+str(inp_len)+".keras"
|
47 |
elif message == "!getmodelhash":
|
48 |
return data_hash
|
49 |
if data_hash in os.listdir("cache"):
|
|
|
43 |
|
44 |
vocab_size = len(tokenizer.word_index) + 1
|
45 |
if data_hash is None:
|
46 |
+
data_hash = hash_str(data)+"_"+str(epochs)+"_"+str(learning_rate)+"_"+str(emb_size)+"_"+str(inp_len)+"_"+str(kernels_count)+"_"+str(kernel_size)+".keras"
|
47 |
elif message == "!getmodelhash":
|
48 |
return data_hash
|
49 |
if data_hash in os.listdir("cache"):
|