Spaces:
Sleeping
Sleeping
Download app.R from hadimaster65555/r-plumer-example: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/hadimaster65555/r-plumer-example/resolve/main/app.R
- Command line
-
hf download hf://spaces/hadimaster65555/r-plumer-example/app.R
-
curl -L -o app.R https://huggingface.co/spaces/hadimaster65555/r-plumer-example/resolve/main/app.R
488 Bytes
| library(plumber) | |
| library(tidyverse) | |
| # 'plumber.R' is the location of the file shown above | |
| message("---- load utils function ----") | |
| source(file = "utils_function.R") | |
| message("---- load any data ----") | |
| source(file = "data_loader_script.R") | |
| message("---- run plumber ----") | |
| pr() %>% | |
| pr_mount("/a", pr("services/a_services.R")) %>% | |
| pr_mount("/b", pr("services/b_services.R")) %>% | |
| pr_mount("/utils", pr("function.R")) %>% | |
| pr_set_docs(F) %>% | |
| pr_run(host = "0.0.0.0", port=7860) |