Spaces:
Sleeping
Sleeping
Update game.py
Browse files
game.py
CHANGED
@@ -168,8 +168,14 @@ class Semantrix:
|
|
168 |
# Load the secret file where the secret words are stored
|
169 |
with open(self.secret_file_path, "r") as file:
|
170 |
self.secret = json.load(file)
|
171 |
-
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
|
174 |
def generate_gensim_model(self, model_class, batch_size=32):
|
175 |
from tqdm import tqdm
|
|
|
168 |
# Load the secret file where the secret words are stored
|
169 |
with open(self.secret_file_path, "r") as file:
|
170 |
self.secret = json.load(file)
|
171 |
+
if lang == 1:
|
172 |
+
self.Config = self.DictWrapper(self.Config_full["ENG"]["Game"])
|
173 |
+
self.secret_dict = self.secret["ENG"]
|
174 |
+
self.secret_list = self.secret_dict["basic"]
|
175 |
+
else:
|
176 |
+
self.Config = self.DictWrapper(self.Config_full["SPA"]["Game"])
|
177 |
+
self.secret_dict = self.secret["SPA"]
|
178 |
+
self.secret_list = self.secret_dict["basic"]
|
179 |
|
180 |
def generate_gensim_model(self, model_class, batch_size=32):
|
181 |
from tqdm import tqdm
|