At the start of your function, do something like this:
add_action( 'generate_before_footer', 'appacdm_frontpage_widgets' );
function appacdm_frontpage_widgets() {
if ( ! is_front_page() )
return;
// Get frontpage widgets to show
?>
// The rest of your code...
}