manika07 commited on
Commit
5425a1c
·
1 Parent(s): 5f2bd0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import pickle
4
  import requests
5
  import base64
6
 
7
- @st.cache
8
  def read_model(url):
9
  response = requests.get(url)
10
  open("temp.pkl", "wb").write(response.content)
 
4
  import requests
5
  import base64
6
 
7
+ @st.cache_data(ttl=3600)
8
  def read_model(url):
9
  response = requests.get(url)
10
  open("temp.pkl", "wb").write(response.content)