In Photos on iCloud.com, click the Recently Deleted album in the sidebar. Select the photos or videos you want to recover, then click Recover.