hongaik commited on
Commit
b75e210
1 Parent(s): 5145430

add charts

Browse files
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -25,11 +25,8 @@ if st.button('Click for predictions!'):
25
  color='sentiment'
26
  )
27
 
28
- fig = make_subplots(rows=1, cols=2)
29
- fig.add_trace(bar, row=1, col=1)
30
- fig.add_trace(pie, row=1, col=2)
31
-
32
- st.plotly_chart(fig, use_container_width=True)
33
 
34
  st.write("\n")
35
  st.subheader('Or... Upload a csv file if you have a file instead.')
 
25
  color='sentiment'
26
  )
27
 
28
+ st.plotly_chart(bar, use_container_width=True)
29
+ st.plotly_chart(pie, use_container_width=True)
 
 
 
30
 
31
  st.write("\n")
32
  st.subheader('Or... Upload a csv file if you have a file instead.')
__pycache__/utils.cpython-38.pyc CHANGED
Binary files a/__pycache__/utils.cpython-38.pyc and b/__pycache__/utils.cpython-38.pyc differ
 
app.py CHANGED
@@ -25,11 +25,8 @@ if st.button('Click for predictions!'):
25
  color='sentiment'
26
  )
27
 
28
- fig = make_subplots(rows=1, cols=2)
29
- fig.add_trace(bar, row=1, col=1)
30
- fig.add_trace(pie, row=1, col=2)
31
-
32
- st.plotly_chart(fig, use_container_width=True)
33
 
34
  st.write("\n")
35
  st.subheader('Or... Upload a csv file if you have a file instead.')
 
25
  color='sentiment'
26
  )
27
 
28
+ st.plotly_chart(bar, use_container_width=True)
29
+ st.plotly_chart(pie, use_container_width=True)
 
 
 
30
 
31
  st.write("\n")
32
  st.subheader('Or... Upload a csv file if you have a file instead.')