Spaces:
Sleeping
Sleeping
Update det-metrics.py
Browse files- det-metrics.py +1 -1
det-metrics.py
CHANGED
@@ -193,7 +193,7 @@ class DetectionMetric(evaluate.Metric):
|
|
193 |
**kwargs
|
194 |
)
|
195 |
|
196 |
-
@deprecated(reason="Use `module.
|
197 |
def add_batch(self, payload: Payload, model_name: str = None):
|
198 |
"""Takes as input a payload and adds the batch to the metric"""
|
199 |
self.add_payload(payload, model_name)
|
|
|
193 |
**kwargs
|
194 |
)
|
195 |
|
196 |
+
@deprecated(reason="Use `module.add_payload` instead")
|
197 |
def add_batch(self, payload: Payload, model_name: str = None):
|
198 |
"""Takes as input a payload and adds the batch to the metric"""
|
199 |
self.add_payload(payload, model_name)
|