Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def process_image(image):
|
|
66 |
with torch.no_grad():
|
67 |
outputs = model(input_ids=input_ids, bbox=bbox, attention_mask=attention_mask)
|
68 |
|
69 |
-
predicted_labels = outputs.
|
70 |
|
71 |
# Extract content from boxes
|
72 |
extracted_content = {}
|
|
|
66 |
with torch.no_grad():
|
67 |
outputs = model(input_ids=input_ids, bbox=bbox, attention_mask=attention_mask)
|
68 |
|
69 |
+
predicted_labels = outputs.logits.argmax(dim=2).squeeze().tolist()
|
70 |
|
71 |
# Extract content from boxes
|
72 |
extracted_content = {}
|