saritha5 commited on
Commit
dcf61b5
1 Parent(s): 480a57f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -36,11 +36,12 @@ step = st.number_input('Enter the Price step',min_value = 10,value = 10,step=1)
36
  a,b = prediction(max_value,step,pc2)
37
  if st.button('Predict'):
38
  fun()
39
- plt.figure(figsize=(16, 5))
40
- plt.xlabel("Price action ($)")
41
- plt.ylabel("Q ($)")
42
- plt.bar(a, b, color='crimson', width=6, alpha=0.8)
43
- plt.show()
 
44
 
45
 
46
 
 
36
  a,b = prediction(max_value,step,pc2)
37
  if st.button('Predict'):
38
  fun()
39
+ chart_data = pd.DataFrame(a,b
40
+
41
+ columns=["a", "b", "c"],x="Price action ($)",y="Q ($)",width=6)
42
+
43
+ st.bar_chart(chart_data)
44
+
45
 
46
 
47