DemiPoto commited on
Commit
7e3e984
·
verified ·
1 Parent(s): 74e36ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -2
app.py CHANGED
@@ -21,7 +21,25 @@ def split_models(models,nb_models):
21
  models_lis_temp.append(models_temp)
22
  return models_lis_temp
23
 
24
- def split_models_x3(models,nb_models):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  models_temp=[]
26
  models_lis_temp=[]
27
  i=0
@@ -37,7 +55,8 @@ def split_models_x3(models,nb_models):
37
  return models_lis_temp
38
 
39
  """models_test=split_models_x3(models,nb_models)"""
40
- models_test=split_models(models,nb_models)
 
41
 
42
  def get_current_time():
43
  now = datetime.now()
 
21
  models_lis_temp.append(models_temp)
22
  return models_lis_temp
23
 
24
+ def split_models_4x10(models,nb_models):
25
+ models_temp=[]
26
+ models_lis_temp=[]
27
+ i=0
28
+ nb_models_4x10=10
29
+ for m in models:
30
+ models_temp.append(m)
31
+ i=i+1
32
+ if i%nb_models_4x10==0:
33
+ models_lis_temp.append(models_temp)
34
+ models_lis_temp.append(models_temp)
35
+ models_lis_temp.append(models_temp)
36
+ models_lis_temp.append(models_temp)
37
+ models_temp=[]
38
+ if len(models_temp)>1:
39
+ models_lis_temp.append(models_temp)
40
+ return models_lis_temp , nb_models_4x10*4
41
+
42
+ def split_models_8x3(models,nb_models):
43
  models_temp=[]
44
  models_lis_temp=[]
45
  i=0
 
55
  return models_lis_temp
56
 
57
  """models_test=split_models_x3(models,nb_models)"""
58
+ """models_test=split_models(models,nb_models)"""
59
+ models_test , nb_models =split_models_4x10(models,nb_models)
60
 
61
  def get_current_time():
62
  now = datetime.now()