gaspar-avit commited on
Commit
fb76caa
1 Parent(s): ec5db99

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -306,14 +306,12 @@ if __name__ == "__main__":
306
  is_clicked = col1.button(label="Generate poster!")
307
 
308
  ## Clear cache between runs
309
- #st.runtime.legacy_caching.clear_cache()
310
  generate_poster.clear()
311
 
312
  ## Generate poster
313
  if is_clicked:
314
  poster = generate_poster(data[data.title_year==session.selected_movie])
315
- generate_poster.clear()
316
- st.runtime.legacy_caching.clear_cache()
317
 
318
 
319
  _= """
@@ -325,4 +323,3 @@ if __name__ == "__main__":
325
  if is_clicked_rerun:
326
  poster = generate_poster(data[data.title_year==selected_movie])
327
  """
328
-
 
306
  is_clicked = col1.button(label="Generate poster!")
307
 
308
  ## Clear cache between runs
309
+ st.runtime.legacy_caching.clear_cache()
310
  generate_poster.clear()
311
 
312
  ## Generate poster
313
  if is_clicked:
314
  poster = generate_poster(data[data.title_year==session.selected_movie])
 
 
315
 
316
 
317
  _= """
 
323
  if is_clicked_rerun:
324
  poster = generate_poster(data[data.title_year==selected_movie])
325
  """