TaiYouWeb commited on
Commit
b14df7b
1 Parent(s): 9354fd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,6 +18,7 @@ import datetime
18
  import psutil
19
  import subprocess
20
  from gpustat import GPUStatCollection
 
21
 
22
  try:
23
  import spaces
@@ -96,7 +97,7 @@ def update_cpu_status():
96
  cpu_percent = psutil.cpu_percent()
97
  cpu_freq = psutil.cpu_freq()
98
  cpu_count = psutil.cpu_count(logical=True)
99
- cpu_name = psutil.cpu_freq().cpu
100
  virtual_memory = psutil.virtual_memory()
101
 
102
  cpu_status = f"**{time_str} (UTC+0)**\n\n"
 
18
  import psutil
19
  import subprocess
20
  from gpustat import GPUStatCollection
21
+ import platform
22
 
23
  try:
24
  import spaces
 
97
  cpu_percent = psutil.cpu_percent()
98
  cpu_freq = psutil.cpu_freq()
99
  cpu_count = psutil.cpu_count(logical=True)
100
+ cpu_name = platform.processor()
101
  virtual_memory = psutil.virtual_memory()
102
 
103
  cpu_status = f"**{time_str} (UTC+0)**\n\n"