Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,8 @@ import torch.optim as optim
|
|
12 |
plt.rcParams.update({'pdf.fonttype': 'truetype'})
|
13 |
import pickle
|
14 |
pc2 = pickle.load(open('price.pkl','rb'))
|
|
|
|
|
15 |
def to_tensor(x):
|
16 |
return torch.from_numpy(np.array(x).astype(np.float32))
|
17 |
def prediction(price_max,price_step,policy_net):
|
|
|
12 |
plt.rcParams.update({'pdf.fonttype': 'truetype'})
|
13 |
import pickle
|
14 |
pc2 = pickle.load(open('price.pkl','rb'))
|
15 |
+
|
16 |
+
st.title("Price Optimization")
|
17 |
def to_tensor(x):
|
18 |
return torch.from_numpy(np.array(x).astype(np.float32))
|
19 |
def prediction(price_max,price_step,policy_net):
|