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