Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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.
|
36 |
-
st.
|
|
|
|
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))
|