Spaces:
Sleeping
Sleeping
Alealejandrooo
commited on
Commit
•
c2f1ab5
1
Parent(s):
e135b49
Debugging
Browse files
app.py
CHANGED
@@ -151,6 +151,11 @@ def extract_detected_entries_pdl(image):
|
|
151 |
txt.append(cleanString_basic(r[-1][0]))
|
152 |
scores.append(r[-1][1])
|
153 |
boxes.append(r[0])
|
|
|
|
|
|
|
|
|
|
|
154 |
|
155 |
return pd.DataFrame(np.transpose([txt, scores, boxes]),columns = ["Text","Score", "Boundary Box"])
|
156 |
|
|
|
151 |
txt.append(cleanString_basic(r[-1][0]))
|
152 |
scores.append(r[-1][1])
|
153 |
boxes.append(r[0])
|
154 |
+
|
155 |
+
# Debugging: Print shapes and types of txt, scores, and boxes
|
156 |
+
print("txt shape:", np.shape(txt), "type:", type(txt[0]))
|
157 |
+
print("scores shape:", np.shape(scores), "type:", type(scores[0]))
|
158 |
+
print("boxes shape:", np.shape(boxes), "type:", type(boxes[0]))
|
159 |
|
160 |
return pd.DataFrame(np.transpose([txt, scores, boxes]),columns = ["Text","Score", "Boundary Box"])
|
161 |
|