Jsevisal commited on
Commit
7cd7da4
·
verified ·
1 Parent(s): abce107

Update game.py

Browse files
Files changed (1) hide show
  1. game.py +8 -2
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
- self.secret_dict = self.secret["SPA"]
172
- self.secret_list = self.secret_dict["basic"]
 
 
 
 
 
 
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