text: import platform
  import re
  import subprocess
  
  from flask import jsonify
  
  def get_processor_name():
      if platform.system() == "Windows":
          p = platform.processor()
      elif platform.system() == "Darwin":
          command = "/usr/sbin/sysctl -n machdep.cpu.brand_string"
          p = subprocess.check_output(command, shell=True).strip().decode()
      elif platform.system() == "Linux":
          command = "cat /proc/cpuinfo"
          all_info = subprocess.check_output(command, shell=True).strip().decode()
          for line in all_info.split("\n"):
              if "model name" in line:
                  p = re.sub(".*model name.*:", "", line, 1)
      else:
          p = "cannot find cpuinfo"
      pinfo = {"model": p}
  
      return jsonify(pinfo)
  