Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,10 +104,10 @@ col1.metric("Total GPU", f"{total_gpu} GB", f"{user_num} users are sharing now")
|
|
| 104 |
col2.metric("Used", f"{used_gpu} GB")
|
| 105 |
col3.metric("Percent", f"{100 * used_gpu/total_gpu} %",)
|
| 106 |
|
| 107 |
-
chart_data = pd.DataFrame(timestamp_gpu_data)
|
| 108 |
|
| 109 |
last_timestamp = sample_data['chain'][-1]['timestamp']
|
| 110 |
-
st.area_chart(chart_data,
|
| 111 |
|
| 112 |
|
| 113 |
|
|
|
|
| 104 |
col2.metric("Used", f"{used_gpu} GB")
|
| 105 |
col3.metric("Percent", f"{100 * used_gpu/total_gpu} %",)
|
| 106 |
|
| 107 |
+
chart_data = pd.DataFrame(timestamp_gpu_data, columns = name_list)
|
| 108 |
|
| 109 |
last_timestamp = sample_data['chain'][-1]['timestamp']
|
| 110 |
+
st.area_chart(chart_data, caption=f'last updated in timestamp {last_timestamp}.')
|
| 111 |
|
| 112 |
|
| 113 |
|