FerdinandPyCode commited on
Commit
feb67fb
·
1 Parent(s): 7fcc84b

fixing error

Browse files
utils/__pycache__/utils_function.cpython-310.pyc CHANGED
Binary files a/utils/__pycache__/utils_function.cpython-310.pyc and b/utils/__pycache__/utils_function.cpython-310.pyc differ
 
utils/utils_function.py CHANGED
@@ -10,16 +10,16 @@ class Translator:
10
  # Charger le modèle pré-entraîné avec Fairseq
11
  inner = "fon_fr" if isFon else "fr_fon"
12
 
13
- if not os.path.exists('utils/data_prepared/'):
14
- print("Not existed")
15
 
16
- shutil.chmod('utils/', 0o777)
17
 
18
- with zipfile.ZipFile('utils/data_prepared.zip', 'r') as zip_ref:
19
- zip_ref.extractall('utils/')
20
 
21
- else:
22
- print("Existed")
23
 
24
  self.model = TransformerModel.from_pretrained(
25
  './utils/checkpoints/fon_fr',
 
10
  # Charger le modèle pré-entraîné avec Fairseq
11
  inner = "fon_fr" if isFon else "fr_fon"
12
 
13
+ # if not os.path.exists('utils/data_prepared/'):
14
+ # print("Not existed")
15
 
16
+ # shutil.chmod('utils/', 0o777)
17
 
18
+ # with zipfile.ZipFile('utils/data_prepared.zip', 'r') as zip_ref:
19
+ # zip_ref.extractall('utils/')
20
 
21
+ # else:
22
+ # print("Existed")
23
 
24
  self.model = TransformerModel.from_pretrained(
25
  './utils/checkpoints/fon_fr',