khizon commited on
Commit
9af1f5a
1 Parent(s): 4c9fb0c

stop frequent downloading of dataset

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -54,7 +54,9 @@ def bar_plot(df):
54
  st.pyplot(fig)
55
 
56
  if __name__ == '__main__':
57
- os.system('python download_dataset.py')
 
 
58
  test = load_data()
59
 
60
  config, processor, model, device = cache_model()
 
54
  st.pyplot(fig)
55
 
56
  if __name__ == '__main__':
57
+ if not os.path.exists('/home/user/app/aesdd.zip'):
58
+ os.system('python download_dataset.py')
59
+
60
  test = load_data()
61
 
62
  config, processor, model, device = cache_model()