ldhldh commited on
Commit
eae7893
·
1 Parent(s): feaa544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -127,13 +127,6 @@ 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 )))
134
- call_data = pd.DataFrame(timestamp_inference_data, columns = ["inference call"], index = timestamp_list_date_str)
135
- st.bar_chart(call_data)
136
-
137
 
138
  class BubbleChart:
139
  def __init__(self, data, bubble_spacing=0, n_bins=5):
@@ -285,5 +278,15 @@ def fig2img(fig):
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']))
 
127
  st.caption(f'last updated in timestamp {last_timestamp}.')
128
 
129
 
 
 
 
 
 
 
 
130
 
131
  class BubbleChart:
132
  def __init__(self, data, bubble_spacing=0, n_bins=5):
 
278
 
279
  chart_generator = GenerateChart(sample_data.get("gpus", {}), bubble_spacing=0.1, n_bins=5)
280
 
281
+
282
+ st.title('Inference call')
283
+ timestamp_list_date_str = []
284
+ for d in timestamp_list_date:
285
+ timestamp_list_date_str.append(strftime('%Y-%m-%d', localtime( d )))
286
+ call_data = pd.DataFrame(timestamp_inference_data, columns = ["inference call"], index = timestamp_list_date_str)
287
+ st.bar_chart(call_data)
288
+
289
+
290
+
291
  st.title('Previous Blocks')
292
  st.table(pd.DataFrame(sample_data['chain']))