marcelomoreno26 commited on
Commit
f81c6bf
1 Parent(s): 6b119d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -2,12 +2,9 @@ from model_functions import *
2
  from preprocessor import *
3
  import streamlit as st
4
  import pandas as pd
5
- from streamlit.hashing import _CodeHasher
6
 
7
- # Create a hasher object
8
- hasher = _CodeHasher()
9
 
10
- @st.cache_data(hash_funcs={Streamlit: lambda x: hasher(x.write)})
11
  def load_example_file(file):
12
  with open(file, "rb") as f:
13
  return f.read()
 
2
  from preprocessor import *
3
  import streamlit as st
4
  import pandas as pd
 
5
 
 
 
6
 
7
+ @st.cache(hash=st.hash)
8
  def load_example_file(file):
9
  with open(file, "rb") as f:
10
  return f.read()