TimStats commited on
Commit
b6e2703
·
verified ·
1 Parent(s): 660cbe7

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +3 -0
app.R CHANGED
@@ -289,6 +289,7 @@ get_player_info <- function(player_id, season, level = "MLB") {
289
  position = position
290
  ))
291
  }
 
292
  download_private_csv <- function(repo_id, filename) {
293
  url <- paste0("https://huggingface.co/datasets/", repo_id, "/resolve/main/", filename)
294
  response <- GET(url, add_headers(Authorization = paste("Bearer", Sys.getenv("GETCSV"))))
@@ -309,7 +310,9 @@ download_private_csv <- function(repo_id, filename) {
309
  stop("Failed to download dataset")
310
  }
311
  }
 
312
  MLB <- download_private_parquet("TimStats/StatcastDataAll", "MLB.csv")
 
313
  AAA <- download_private_parquet("TimStats/StatcastDataAll", "AAA.csv")
314
  FSLAll <- download_private_parquet("TimStats/StatcastDataAll", "FSL.csv")
315
 
 
289
  position = position
290
  ))
291
  }
292
+
293
  download_private_csv <- function(repo_id, filename) {
294
  url <- paste0("https://huggingface.co/datasets/", repo_id, "/resolve/main/", filename)
295
  response <- GET(url, add_headers(Authorization = paste("Bearer", Sys.getenv("GETCSV"))))
 
310
  stop("Failed to download dataset")
311
  }
312
  }
313
+
314
  MLB <- download_private_parquet("TimStats/StatcastDataAll", "MLB.csv")
315
+ print("timmlb")
316
  AAA <- download_private_parquet("TimStats/StatcastDataAll", "AAA.csv")
317
  FSLAll <- download_private_parquet("TimStats/StatcastDataAll", "FSL.csv")
318