Skip to content

Commit

Permalink
close #203
Browse files Browse the repository at this point in the history
  • Loading branch information
asegun-cod committed Nov 17, 2023
1 parent 3c0f1c3 commit 429a70c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/tidy_upload.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,13 @@ upload_data <- function(data, conn, trust_id, user, write_db = TRUE) {
} else {
tidy_data <- tidy_data %>%
dplyr::filter(question_type == api_question_code(get_golem_config("comment_1")))

db_tidy <- db_tidy %>%
dplyr::filter(comment_type == "comment_1")
}

## get prediction url ----
cat("Making sentiment and label predictions for", nrow(db_tidy), "comments from pxtextming API \n")
cat("Making sentiment and label predictions for", nrow(tidy_data), "comments from pxtextming API \n")
api_result <- get_api_pred_url(tidy_data, Sys.getenv("API_key"))

## update api job table ----
Expand Down

0 comments on commit 429a70c

Please sign in to comment.