Spaces:
Runtime error
Runtime error
marcelomoreno26
commited on
Commit
•
f81c6bf
1
Parent(s):
6b119d2
Update app.py
Browse files
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.
|
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()
|