Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,6 @@ for block in sample_data['chain']:
|
|
91 |
if not t['id'] in name_list:
|
92 |
name_list.append(t['id'])
|
93 |
|
94 |
-
timestamp_list = timestamp_list[1:-1]
|
95 |
timestamp_gpu_data = [[0 for _ in range(len(name_list))]]
|
96 |
for block in sample_data['chain']:
|
97 |
temp = timestamp_gpu_data[int(block['index']) - 1]
|
@@ -101,7 +100,7 @@ for block in sample_data['chain']:
|
|
101 |
elif t['kind'] == "out":
|
102 |
temp[name_list.index(t['id'])] = 0
|
103 |
timestamp_gpu_data.append(copy.deepcopy(temp))
|
104 |
-
|
105 |
col1, col2, col3 = st.columns(3)
|
106 |
col1.metric("Total GPU", f"{total_gpu} GB", f"{user_num} users are sharing now")
|
107 |
col2.metric("Used", f"{used_gpu} GB")
|
|
|
91 |
if not t['id'] in name_list:
|
92 |
name_list.append(t['id'])
|
93 |
|
|
|
94 |
timestamp_gpu_data = [[0 for _ in range(len(name_list))]]
|
95 |
for block in sample_data['chain']:
|
96 |
temp = timestamp_gpu_data[int(block['index']) - 1]
|
|
|
100 |
elif t['kind'] == "out":
|
101 |
temp[name_list.index(t['id'])] = 0
|
102 |
timestamp_gpu_data.append(copy.deepcopy(temp))
|
103 |
+
timestamp_gpu_data = timestamp_gpu_data[0:-1]
|
104 |
col1, col2, col3 = st.columns(3)
|
105 |
col1.metric("Total GPU", f"{total_gpu} GB", f"{user_num} users are sharing now")
|
106 |
col2.metric("Used", f"{used_gpu} GB")
|