saritha5 commited on
Commit
d8f96f1
·
1 Parent(s): cca8c90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -27,5 +27,8 @@ def prediction(price_max,price_step,policy_net):
27
  plt.xlabel("Price action ($)")
28
  plt.ylabel("Q ($)")
29
  plt.bar(price_grid, Q_s.detach().numpy(), color='crimson', width=6, alpha=0.8)
30
- plt.show()
31
- prediction(500,10,pc2)
 
 
 
 
27
  plt.xlabel("Price action ($)")
28
  plt.ylabel("Q ($)")
29
  plt.bar(price_grid, Q_s.detach().numpy(), color='crimson', width=6, alpha=0.8)
30
+ plt.show()
31
+ st.header('Enter the Spectification')
32
+ max_value = st.input_number('Enter the Maximun Value of Price')
33
+ step = st.input_number('Enter the Price step')
34
+ prediction(max_value,step,pc2)