Skip to content

Commit

Permalink
feat: choice to proceed after agenda generation
Browse files Browse the repository at this point in the history
Allow the user to proceed with the transcription after the agenda is generated without re-running the workflow function
  • Loading branch information
bakaburg1 committed Apr 15, 2024
1 parent 9c9d184 commit 8056ed6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion R/data_management.R
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,16 @@ speech_to_summary_workflow <- function(
agenda <- do.call(infer_agenda_from_transcript, agenda_infer_args)

message("Agenda generated. Please review it before proceeding.")
return(invisible(transcript_data))

if (!interactive()) {
return(invisible(transcript_data))
}

choice <- utils::menu(c("Yes", "No"), title = "Do you want to proceed?")

if (choice == 2) {
stop("Aborted by user.", call. = FALSE)
}
}
}

Expand Down

0 comments on commit 8056ed6

Please # to comment.