tqhoa commited on
Commit
191a4fd
1 Parent(s): 7d391f9
Files changed (1) hide show
  1. main.py +0 -2
main.py CHANGED
@@ -1,7 +1,6 @@
1
  from fastapi import FastAPI, Query
2
  import os
3
  from typing import Any, Optional
4
- import cpuinfo
5
 
6
  app = FastAPI(
7
  title="Test"
@@ -22,6 +21,5 @@ def root(
22
  if cpu_load == 'True':
23
  result["cpu_average_load"] = os.getloadavg()
24
  result["cpu"] = os.cpu_count()
25
- result["cpu_name"] = cpuinfo.cpu.info[0]['model name']
26
 
27
  return result
 
1
  from fastapi import FastAPI, Query
2
  import os
3
  from typing import Any, Optional
 
4
 
5
  app = FastAPI(
6
  title="Test"
 
21
  if cpu_load == 'True':
22
  result["cpu_average_load"] = os.getloadavg()
23
  result["cpu"] = os.cpu_count()
 
24
 
25
  return result