Download app/v1/app.lua from tanbushi/apis-dev: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/tanbushi/apis-dev/resolve/main/app/v1/app.lua
- Command line
-
hf download hf://spaces/tanbushi/apis-dev/app/v1/app.lua
-
curl -L -o app.lua https://huggingface.co/spaces/tanbushi/apis-dev/resolve/main/app/v1/app.lua
387 Bytes
| ngx.say("version: v1") | |
| -- 定义一个模块表 | |
| local app_module = {} | |
| app_module.a="a in app_v1.lua" | |
| -- 定义一个函数 | |
| function app_module.some_function() | |
| ngx.say("This is some_function from app/v1/app.lua") | |
| end | |
| -- 定义另一个函数 | |
| function app_module.another_function() | |
| ngx.say("This is another_function from app/v1/app.lua") | |
| end | |
| -- 返回模块表 | |
| return app_module |