Zeimoto commited on
Commit
bcfb814
1 Parent(s): 43c8625

update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -8,13 +8,22 @@ from gliner import GLiNER
8
 
9
  from resources import Lead_Labels, entity_labels, set_start, audit_elapsedtime
10
 
 
 
11
  iteration = 0
 
12
  def main ():
 
13
  print(f"Main iteration {iteration}")
14
  iteration += 1
15
- rec = init_model_trans()
16
- ner = init_model_ner() #async
17
 
 
 
 
 
 
 
 
18
  labels = entity_labels
19
 
20
  text = "I have a proposal from cgd where they want one outsystems junior developers and one senior for an estimate of three hundred euros a day, for six months."
 
8
 
9
  from resources import Lead_Labels, entity_labels, set_start, audit_elapsedtime
10
 
11
+ rec = None
12
+ ner = None
13
  iteration = 0
14
+
15
  def main ():
16
+
17
  print(f"Main iteration {iteration}")
18
  iteration += 1
 
 
19
 
20
+ if rec is None:
21
+ print("rec is None")
22
+ rec = init_model_trans()
23
+ if ner is None:
24
+ print("ner is None")
25
+ ner = init_model_ner() #async
26
+
27
  labels = entity_labels
28
 
29
  text = "I have a proposal from cgd where they want one outsystems junior developers and one senior for an estimate of three hundred euros a day, for six months."