Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,9 +122,12 @@ col3.metric("Percent", f"{round(100 * used_gpu/total_gpu, 2)} %",)
|
|
| 122 |
chart_data = pd.DataFrame(timestamp_gpu_data, columns = name_list, index = timestamp_list)
|
| 123 |
|
| 124 |
last_timestamp = strftime('%Y-%m-%d %I:%M:%S %p', localtime( sample_data['chain'][-1]['timestamp'] ))
|
|
|
|
| 125 |
st.area_chart(chart_data)
|
| 126 |
st.caption(f'last updated in timestamp {last_timestamp}.')
|
| 127 |
|
|
|
|
|
|
|
| 128 |
timestamp_list_date_str = []
|
| 129 |
for d in timestamp_list_date:
|
| 130 |
timestamp_list_date_str.append(strftime('%Y-%m-%d', localtime( d )))
|
|
@@ -282,5 +285,5 @@ def fig2img(fig):
|
|
| 282 |
|
| 283 |
chart_generator = GenerateChart(sample_data.get("gpus", {}), bubble_spacing=0.1, n_bins=5)
|
| 284 |
|
| 285 |
-
|
| 286 |
st.table(pd.DataFrame(sample_data['chain']))
|
|
|
|
| 122 |
chart_data = pd.DataFrame(timestamp_gpu_data, columns = name_list, index = timestamp_list)
|
| 123 |
|
| 124 |
last_timestamp = strftime('%Y-%m-%d %I:%M:%S %p', localtime( sample_data['chain'][-1]['timestamp'] ))
|
| 125 |
+
st.title('Gpu pool timeline')
|
| 126 |
st.area_chart(chart_data)
|
| 127 |
st.caption(f'last updated in timestamp {last_timestamp}.')
|
| 128 |
|
| 129 |
+
|
| 130 |
+
st.title('Inference call')
|
| 131 |
timestamp_list_date_str = []
|
| 132 |
for d in timestamp_list_date:
|
| 133 |
timestamp_list_date_str.append(strftime('%Y-%m-%d', localtime( d )))
|
|
|
|
| 285 |
|
| 286 |
chart_generator = GenerateChart(sample_data.get("gpus", {}), bubble_spacing=0.1, n_bins=5)
|
| 287 |
|
| 288 |
+
st.title('Previous Blocks')
|
| 289 |
st.table(pd.DataFrame(sample_data['chain']))
|