0
点赞
收藏
分享

微信扫一扫

PyTorch 2.2大更新!集成FlashAttention-2,性能提升2倍

一叶随风_c94d 2024-02-16 阅读 12

body_filter_by_lua_block{
          local pin = ngx.var.cookie_jrapp_jsfGateway_testPin
            local domain = ngx.var.host
            local scheme = ngx.var.scheme
          local title = "白条"
          local match = ngx.arg[1]:match("<title>([^<]+)</title>")
          if match then
              title = match
          end
          
          if not pin then
            pin = "未知pin"
          end
          
          local script = string.format('<script crossorigin=\"anonymous\" src=\"%s://%s/page-spy/index.min.js\"></script><script>window.$pageSpy=new PageSpy({ project: \"%s\", title: \"%s\" })</script></head>', scheme,domain,title, pin)
          ngx.arg[1] = ngx.arg[1]:gsub("</head>", script)
      }

举报

相关推荐

0 条评论