OwenStOnge commited on
Commit
56c5df2
·
verified ·
1 Parent(s): ecf2d86

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +3 -3
app.R CHANGED
@@ -2004,16 +2004,16 @@ observeEvent(input$upload_hf_btn, {
2004
  file_b64 <- base64enc::base64encode(file_bytes)
2005
 
2006
  body <- list(
 
2007
  commit_message = paste("Update", filename),
2008
- summary = paste("Automated upload from Shiny app:", filename),
2009
- operations = list(
2010
  list(
2011
  operation = "upload",
2012
  path_in_repo = filename,
2013
  content_encoding = "base64",
2014
  content = file_b64
2015
  )
2016
- )
2017
  )
2018
 
2019
  resp <- httr::POST(
 
2004
  file_b64 <- base64enc::base64encode(file_bytes)
2005
 
2006
  body <- list(
2007
+ summary = paste("Update", filename),
2008
  commit_message = paste("Update", filename),
2009
+ operations = I(list(
 
2010
  list(
2011
  operation = "upload",
2012
  path_in_repo = filename,
2013
  content_encoding = "base64",
2014
  content = file_b64
2015
  )
2016
+ ))
2017
  )
2018
 
2019
  resp <- httr::POST(