MSey90
commited on
updates cahce decorator
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import streamlit as st
|
|
5 |
# Access the secret token
|
6 |
hf_token = st.secrets["default"]["hf_token"]
|
7 |
|
8 |
-
@st.
|
9 |
def load_model():
|
10 |
return pipeline("text-generation", model="MSey/tiny_CaLL_r10_O1_f10_LT_c1022", use_auth_token =hf_token)
|
11 |
|
|
|
5 |
# Access the secret token
|
6 |
hf_token = st.secrets["default"]["hf_token"]
|
7 |
|
8 |
+
@st.cache_resource
|
9 |
def load_model():
|
10 |
return pipeline("text-generation", model="MSey/tiny_CaLL_r10_O1_f10_LT_c1022", use_auth_token =hf_token)
|
11 |
|