Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,21 @@ from all_models import (models , models_test)
|
|
4 |
from datetime import datetime
|
5 |
|
6 |
now2 = 0
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
def get_current_time():
|
10 |
now = datetime.now()
|
@@ -33,9 +47,9 @@ def load_fn(models):
|
|
33 |
|
34 |
|
35 |
"""models = models_test[1]"""
|
|
|
|
|
36 |
load_fn(models)
|
37 |
-
"""models = {}
|
38 |
-
load_fn(models)"""
|
39 |
|
40 |
|
41 |
def extend_choices(choices):
|
|
|
4 |
from datetime import datetime
|
5 |
|
6 |
now2 = 0
|
7 |
+
nb_models=16
|
8 |
+
|
9 |
+
def split_models(models,nb_models):
|
10 |
+
models_temp={}
|
11 |
+
models_lis_temp={}
|
12 |
+
i=0
|
13 |
+
for m in models
|
14 |
+
models_temp.append(m)
|
15 |
+
i=i+1
|
16 |
+
if i%nb_models==0:
|
17 |
+
models_lis_temp.append(models_temp)
|
18 |
+
models_temp={}
|
19 |
+
return models_lis_temp
|
20 |
+
|
21 |
+
models_test=split_models(models,nb_models)
|
22 |
|
23 |
def get_current_time():
|
24 |
now = datetime.now()
|
|
|
47 |
|
48 |
|
49 |
"""models = models_test[1]"""
|
50 |
+
"""load_fn(models)"""
|
51 |
+
models = {}
|
52 |
load_fn(models)
|
|
|
|
|
53 |
|
54 |
|
55 |
def extend_choices(choices):
|