Spaces:
Running
Running
Asankhaya Sharma
commited on
Commit
·
3ed339f
1
Parent(s):
548f731
update app
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from streamlit_chat import message
|
|
5 |
|
6 |
checkpoint = "."
|
7 |
|
8 |
-
@st.
|
9 |
def get_model():
|
10 |
model = AutoModelForCausalLM.from_pretrained(checkpoint)
|
11 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
|
|
5 |
|
6 |
checkpoint = "."
|
7 |
|
8 |
+
@st.cache
|
9 |
def get_model():
|
10 |
model = AutoModelForCausalLM.from_pretrained(checkpoint)
|
11 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|