justheuristic commited on
Commit
72f4abd
1 Parent(s): 926a846

test with bokeh

Browse files
Files changed (2) hide show
  1. app.py +0 -13
  2. charts.py +12 -0
app.py CHANGED
@@ -31,19 +31,6 @@ So, can individual researchers and small labs still train state-of-the-art? Yes
31
  All it takes is for a bunch of us to come together. In fact, we're doing it right now and <b>you're invited to join!</b>
32
  """, vspace_before=12)
33
 
34
- #DEBUG
35
- import streamlit as st
36
- from bokeh.plotting import figure
37
- x = [1, 2, 3, 4, 5]
38
- y = [6, 7, 2, 4, 5]
39
- p = figure(
40
- title='simple line example',
41
- x_axis_label='x',
42
- y_axis_label='y')
43
- p.line(x, y, legend_label='Trend', line_width=2)
44
- st.bokeh_chart(p, use_container_width=True)
45
- #/DEBUG
46
-
47
  draw_current_progress()
48
 
49
 
31
  All it takes is for a bunch of us to come together. In fact, we're doing it right now and <b>you're invited to join!</b>
32
  """, vspace_before=12)
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  draw_current_progress()
35
 
36
 
charts.py CHANGED
@@ -1,4 +1,5 @@
1
  import streamlit as st
 
2
 
3
  from dashboard_utils.bubbles import get_new_bubble_data
4
  from dashboard_utils.main_metrics import get_main_metrics
@@ -8,6 +9,17 @@ from streamlit_observable import observable
8
  def draw_current_progress():
9
  st.markdown("<br>", unsafe_allow_html=True)
10
  source = get_main_metrics()
 
 
 
 
 
 
 
 
 
 
 
11
  st.vega_lite_chart(
12
  source, {
13
  "height": 200,
1
  import streamlit as st
2
+ from bokeh.plotting import figure
3
 
4
  from dashboard_utils.bubbles import get_new_bubble_data
5
  from dashboard_utils.main_metrics import get_main_metrics
9
  def draw_current_progress():
10
  st.markdown("<br>", unsafe_allow_html=True)
11
  source = get_main_metrics()
12
+
13
+ # DEBUG
14
+ x = [1, 2, 3, 4, 5]
15
+ y = [6, 7, 2, 4, 5]
16
+ p = figure(
17
+ title='Training DALL-E with volunteers (updated regularly during NeurIPS)',
18
+ x_axis_label='x', y_axis_label='y', height=200)
19
+ p.line(x, y, legend_label='Trend', line_width=2)
20
+ st.bokeh_chart(p, use_container_width=True)
21
+ # /DEBUG
22
+
23
  st.vega_lite_chart(
24
  source, {
25
  "height": 200,