Skip to content

Commit

Permalink
chore: cleanup for precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHWade committed Feb 1, 2024
1 parent 1d21a2e commit 500420d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ repos:
- id: no-browser-statement
- id: no-debug-statement
- id: no-print-statement
- id: deps-in-desc
# args: [--warn_only]
- id: pkgdown
# args: [--warn_only]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion R/document_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ summarize_data <- function(data,
prep_data_prompt <- function(data, method, prompt) {
summarized_data <- summarize_data(data = data, method = method)

paste(testthat::capture_output(print(summarized_data)), prompt, sep = "\n")
paste(testthat::capture_output(cat_print(summarized_data)), prompt, sep = "\n")
}
1 change: 0 additions & 1 deletion R/embedding-py.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ colbert_rerank <- function(documents, model_name = "colbert-ir/colbertv2.0") {
)
}

print(paste0("Took ", time$time() - start, " seconds to re-rank documents with ColBERT."))
sorted_data <- scores[order(sapply(scores, function(x) x$score), decreasing = TRUE)]
}

Expand Down
2 changes: 0 additions & 2 deletions R/transcribe.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ transcribe_audio_chunk <-

result <- httr::content(response, "parsed", "application/json")

print(result)

file.remove(tmp_file)

return(result)
Expand Down
1 change: 0 additions & 1 deletion inst/retriever/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ make_chat_history <- function(chats) {
)
}) |>
purrr::list_flatten()
print(history)
history
}

Expand Down

0 comments on commit 500420d

Please sign in to comment.