I would allocate at least three or four hours between these flights. You’ll need to retrieve your bags and then recheck them. BA does not interline luggage on separate tickets. Note that if you do not show up for the EDI flight for any reason, that whole return ticket will be cancelled, forcing you to buy new ones (or not travel.)