There's an online myth which circulates every few months about someone getting HIV from eating fruit. Sometimes the fruit has been injected with blood, sometimes the vendor selling the fruit has HIV and has cut themself… whatever the back-story, it's a myth. You can't get HIV from eating fruit with blood on or in it.
If you think you may have put yourself at risk of HIV then you should begin taking PEP (emergency HIV treatment) within 72 hours (3 days). You'll need to speak to a healthcare professional to be prescribed PEP.