rajesh1729 commited on
Commit
29347fc
·
verified ·
1 Parent(s): 854d36c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.cache
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.cache
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: