Spaces:
Running
Running
Update app.R
Browse files
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 |
-
|
| 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(
|