Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ timestamp_list = []
|
|
| 86 |
|
| 87 |
name_list = []
|
| 88 |
timestamp_gpu_data = []
|
| 89 |
-
timestamp_inference_data = [0]
|
| 90 |
timestamp_list_date = []
|
| 91 |
|
| 92 |
for block in sample_data['chain']:
|
|
@@ -97,7 +97,7 @@ for block in sample_data['chain']:
|
|
| 97 |
name_list.append(t['id'])
|
| 98 |
|
| 99 |
timestamp_gpu_data = [[0 for _ in range(len(name_list))]]
|
| 100 |
-
timestamp_list_date = [sample_data['chain'][0]['timestamp']]
|
| 101 |
|
| 102 |
for block in sample_data['chain']:
|
| 103 |
temp = timestamp_gpu_data[int(block['index']) - 1]
|
|
@@ -129,7 +129,7 @@ timestamp_list_date_str = []
|
|
| 129 |
for d in timestamp_list_date:
|
| 130 |
timestamp_list_date_str.append(strftime('%Y-%m-%d', localtime( d )))
|
| 131 |
call_data = pd.DataFrame(timestamp_inference_data, columns = ["inference call"], index = timestamp_list_date_str)
|
| 132 |
-
st.
|
| 133 |
|
| 134 |
|
| 135 |
class BubbleChart:
|
|
|
|
| 86 |
|
| 87 |
name_list = []
|
| 88 |
timestamp_gpu_data = []
|
| 89 |
+
timestamp_inference_data = [0, 0]
|
| 90 |
timestamp_list_date = []
|
| 91 |
|
| 92 |
for block in sample_data['chain']:
|
|
|
|
| 97 |
name_list.append(t['id'])
|
| 98 |
|
| 99 |
timestamp_gpu_data = [[0 for _ in range(len(name_list))]]
|
| 100 |
+
timestamp_list_date = [0, sample_data['chain'][0]['timestamp']]
|
| 101 |
|
| 102 |
for block in sample_data['chain']:
|
| 103 |
temp = timestamp_gpu_data[int(block['index']) - 1]
|
|
|
|
| 129 |
for d in timestamp_list_date:
|
| 130 |
timestamp_list_date_str.append(strftime('%Y-%m-%d', localtime( d )))
|
| 131 |
call_data = pd.DataFrame(timestamp_inference_data, columns = ["inference call"], index = timestamp_list_date_str)
|
| 132 |
+
st.area_chart(call_data)
|
| 133 |
|
| 134 |
|
| 135 |
class BubbleChart:
|