While implementing this code for mt5 summarization of hugging face This error occurred : enter image description here
18 )
19 # Extract the median scores
---> 20 result = {key: value.mid.fmeasure * 100 for key, value in result.items()}
21 return {k: round(v, 4) for k, v in result.items()}
AttributeError: 'numpy.float64' object has no attribute 'mid'
Is there something I could do? since the code is kinda fixed. Thank you :)