Spaces:
Runtime error
Runtime error
Commit
·
a85f7fb
1
Parent(s):
68f4d46
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
|
19 |
# device_map = infer_auto_device_map(model, dtype="float16")
|
20 |
# st.write(device_map)
|
21 |
|
22 |
-
@st.
|
23 |
def load_model():
|
24 |
st.write('Loading model...')
|
25 |
model = pipeline("text-generation", model="bryanmildort/gpt_neo_notes")
|
|
|
19 |
# device_map = infer_auto_device_map(model, dtype="float16")
|
20 |
# st.write(device_map)
|
21 |
|
22 |
+
@st.cache
|
23 |
def load_model():
|
24 |
st.write('Loading model...')
|
25 |
model = pipeline("text-generation", model="bryanmildort/gpt_neo_notes")
|