Spaces:
Running
Running
Update sroie_inference.py
Browse files- sroie_inference.py +1 -1
sroie_inference.py
CHANGED
@@ -78,7 +78,7 @@ def prediction(image):
|
|
78 |
d = {}
|
79 |
for id, i in enumerate(true_predictions):
|
80 |
if i not in d.keys():
|
81 |
-
d[i] = true_words[
|
82 |
else:
|
83 |
d[i] = d[i] + ", " + true_words[id]
|
84 |
d = {k: v.strip() for (k, v) in d.items()}
|
|
|
78 |
d = {}
|
79 |
for id, i in enumerate(true_predictions):
|
80 |
if i not in d.keys():
|
81 |
+
d[i] = true_words[id]
|
82 |
else:
|
83 |
d[i] = d[i] + ", " + true_words[id]
|
84 |
d = {k: v.strip() for (k, v) in d.items()}
|