updated
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def get_ext(uploaded_file):
|
|
31 |
|
32 |
|
33 |
|
34 |
-
@st.
|
35 |
def read_model(url):
|
36 |
response = requests.get(url)
|
37 |
open("temp.pkl", "wb").write(response.content)
|
@@ -72,7 +72,7 @@ def conv_txt(extype):
|
|
72 |
return papers
|
73 |
|
74 |
#===Read data===
|
75 |
-
uploaded_file = st.file_uploader("Choose a file", type=['csv']
|
76 |
|
77 |
if uploaded_file is not None:
|
78 |
df = pd.read_csv(uploaded_file, encoding='latin-1')
|
|
|
31 |
|
32 |
|
33 |
|
34 |
+
@st.cache_resource(ttl=3600)
|
35 |
def read_model(url):
|
36 |
response = requests.get(url)
|
37 |
open("temp.pkl", "wb").write(response.content)
|
|
|
72 |
return papers
|
73 |
|
74 |
#===Read data===
|
75 |
+
uploaded_file = st.file_uploader("Choose a file", type=['csv'])
|
76 |
|
77 |
if uploaded_file is not None:
|
78 |
df = pd.read_csv(uploaded_file, encoding='latin-1')
|