Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ import pickle
|
|
14 |
pc2 = pickle.load(open('price.pkl','rb'))
|
15 |
import streamlit as st
|
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):
|
|
|
14 |
pc2 = pickle.load(open('price.pkl','rb'))
|
15 |
import streamlit as st
|
16 |
st.title("Price Optimization")
|
17 |
+
|
18 |
def to_tensor(x):
|
19 |
return torch.from_numpy(np.array(x).astype(np.float32))
|
20 |
def prediction(price_max,price_step,policy_net):
|