Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import pickle
|
|
4 |
import requests
|
5 |
import base64
|
6 |
|
7 |
-
@st.
|
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)
|