Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def process_image(image):
|
|
64 |
|
65 |
# Predict token labels
|
66 |
with torch.no_grad():
|
67 |
-
outputs = model
|
68 |
|
69 |
predicted_labels = outputs.predictions.argmax(dim=2).squeeze().tolist()
|
70 |
|
|
|
64 |
|
65 |
# Predict token labels
|
66 |
with torch.no_grad():
|
67 |
+
outputs = model(input_ids=input_ids, bbox=bbox, attention_mask=attention_mask)
|
68 |
|
69 |
predicted_labels = outputs.predictions.argmax(dim=2).squeeze().tolist()
|
70 |
|