sohom004 commited on
Commit
094974c
·
verified ·
1 Parent(s): b9379ec

cpu_name added

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def get_cgroupv2_memory_limit():
68
 
69
  @app.get("/")
70
  def greet_json():
71
- return {"Hello": "World!", "cpu_count": get_cgroupv2_cpu_limit(), "total_ram_in_MB": get_cgroupv2_memory_limit()}
72
 
73
  @app.get("/health")
74
  def health():
 
68
 
69
  @app.get("/")
70
  def greet_json():
71
+ return {"Hello": "World!", "cpu_count": get_cgroupv2_cpu_limit(), "total_ram_in_MB": get_cgroupv2_memory_limit(), "cpu_name":cpuinfo.get_cpu_info()['brand_raw']}
72
 
73
  @app.get("/health")
74
  def health():