Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ 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 |
-
|
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)
|
|
|
25 |
#plt.figure(figsize=(16, 5))
|
26 |
#plt.xlabel("Price action ($)")
|
27 |
#plt.ylabel("Q ($)")
|
28 |
+
st.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)
|