saritha5 commited on
Commit
f21f5e5
·
1 Parent(s): 10a3030

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -25,12 +25,13 @@ def prediction(price_max,price_step,policy_net):
25
  #plt.figure(figsize=(16, 5))
26
  #plt.xlabel("Price action ($)")
27
  #plt.ylabel("Q ($)")
28
- s#t.bar_chart(price_grid, Q_s.detach().numpy(), color='crimson', width=6, alpha=0.8)
29
  #plt.show()
30
  return price_grid[a_opt]
31
  st.header('Enter the Spectification')
32
  max_value = st.number_input('Enter the Maximun Value of Price',min_value=50,value = 500,step=1)
33
  step = st.number_input('Enter the Price step',min_value = 10,value = 10,step=1)
34
- a = prediction(max_value,step,pc2)
35
- st.header('Optimal Price Action')
36
- st.subheader(str(a))
 
 
25
  #plt.figure(figsize=(16, 5))
26
  #plt.xlabel("Price action ($)")
27
  #plt.ylabel("Q ($)")
28
+ #t.bar_chart(price_grid, Q_s.detach().numpy(), color='crimson', width=6, alpha=0.8)
29
  #plt.show()
30
  return price_grid[a_opt]
31
  st.header('Enter the Spectification')
32
  max_value = st.number_input('Enter the Maximun Value of Price',min_value=50,value = 500,step=1)
33
  step = st.number_input('Enter the Price step',min_value = 10,value = 10,step=1)
34
+ a = prediction(max_value,step,pc2
35
+ if st.button('Predict'):
36
+ st.header('Optimal Price Action')
37
+ st.subheader(str(a))