Spaces:
Sleeping
Sleeping
ITSAIDI
commited on
Commit
•
6c469d3
1
Parent(s):
2680f1d
asd
Browse files- utilitis.py +1 -0
utilitis.py
CHANGED
@@ -104,6 +104,7 @@ def Get_Json(true_predictions,words):
|
|
104 |
i = 0
|
105 |
for prd in true_predictions:
|
106 |
if prd in ['InvNum','Fourni', 'InvDate','TT','TTC','TVA']:
|
|
|
107 |
print(i,prd,words[i-1])
|
108 |
Results[prd] = words[i-1]
|
109 |
i+=1
|
|
|
104 |
i = 0
|
105 |
for prd in true_predictions:
|
106 |
if prd in ['InvNum','Fourni', 'InvDate','TT','TTC','TVA']:
|
107 |
+
if i-1 < len(words):
|
108 |
print(i,prd,words[i-1])
|
109 |
Results[prd] = words[i-1]
|
110 |
i+=1
|