Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,11 @@ sample_data = response["data"][0]
|
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
-
user_num =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
total_gpu = sample_data['total']['total']
|
| 91 |
used_gpu = sample_data['total']['used']
|
| 92 |
timestamp_list = []
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
+
user_num = 0
|
| 90 |
+
|
| 91 |
+
if len(sample_data['gpus'])>0:
|
| 92 |
+
user_num= len(sample_data['gpus'].items())
|
| 93 |
+
|
| 94 |
total_gpu = sample_data['total']['total']
|
| 95 |
used_gpu = sample_data['total']['used']
|
| 96 |
timestamp_list = []
|