Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def run():
|
|
37 |
|
38 |
st.sidebar.markdown('''[![Repo](https://badgen.net/badge/icon/GitHub?icon=github&label)](https://github.com/ydataai/ydata-synthetic)''',unsafe_allow_html=True)
|
39 |
|
40 |
-
@st.
|
41 |
def train(df):
|
42 |
#models_dir = './cache'
|
43 |
gan_args = ModelParameters(batch_size=batch_size,
|
@@ -54,7 +54,7 @@ def run():
|
|
54 |
synthesizer = model.load('data_synth.pkl')
|
55 |
data_syn = synthesizer.sample(samples)
|
56 |
return data_syn
|
57 |
-
@st.
|
58 |
def convert_df(df):
|
59 |
return df.to_csv().encode('utf-8')
|
60 |
if data is not None:
|
|
|
37 |
|
38 |
st.sidebar.markdown('''[![Repo](https://badgen.net/badge/icon/GitHub?icon=github&label)](https://github.com/ydataai/ydata-synthetic)''',unsafe_allow_html=True)
|
39 |
|
40 |
+
@st.cache_data
|
41 |
def train(df):
|
42 |
#models_dir = './cache'
|
43 |
gan_args = ModelParameters(batch_size=batch_size,
|
|
|
54 |
synthesizer = model.load('data_synth.pkl')
|
55 |
data_syn = synthesizer.sample(samples)
|
56 |
return data_syn
|
57 |
+
@st.cache_data
|
58 |
def convert_df(df):
|
59 |
return df.to_csv().encode('utf-8')
|
60 |
if data is not None:
|