class_docstr: Implementation for subcmd `towhee server`. Start pipelines as services.
class_docstr_tok: ["Implementation","for","subcmd","`","towhee","server","`",".","Start","pipelines","as","services","."]
code: def _rservice(self, repos):
      def _to_digit(x):
          try:
              float(x)
          except ValueError:
              return x
  
          if "." in x:
              return float(x)
          return int(x)
  
      paths = self._args.uri
      params = self._args.params
      configs = [auto_config.AutoConfig.load_config(i) for i in repos]
  
      if params:
          for param, config in zip(params, configs):
              if param.lower() == "none":
                  continue
              kvs = param.split(",")
  
              updates = {}
              for kv in kvs:
                  k, v = kv.split("=")
                  # Deal with numbers
                  updates[k] = _to_digit(v)
  
              config.__dict__.update(updates)
  
      pipes = [
          auto_pipes.AutoPipes.pipeline(repo, config=config)
          for repo, config in zip(repos, configs)
      ]
  
      service = api_service.build_service(list(zip(pipes, paths)))
  
      return service
  
file_path: towhee/towhee/command/service.py
imports: import sys
  import importlib
  import argparse
  from pathlib import Path
  from towhee.utils.lazy_import import LazyImport
label_desc: Use image node_id 5 for calling the ServerCommand obj's underlying member method code with example usage: obj._rservice(repos) and returns: service, int, float, x