Spaces:
Runtime error
Runtime error
main.py
CHANGED
@@ -25,7 +25,7 @@ device = ("cuda"
|
|
25 |
logging.info(C("[INFO] "f"device = {device}"))
|
26 |
|
27 |
# ------------------ INITITALIZE ------------------- #
|
28 |
-
@
|
29 |
def model_init():
|
30 |
tokenizer = AutoTokenizer.from_pretrained(
|
31 |
"ckip-joint/bloom-1b1-zh")
|
|
|
25 |
logging.info(C("[INFO] "f"device = {device}"))
|
26 |
|
27 |
# ------------------ INITITALIZE ------------------- #
|
28 |
+
@st.cache
|
29 |
def model_init():
|
30 |
tokenizer = AutoTokenizer.from_pretrained(
|
31 |
"ckip-joint/bloom-1b1-zh")
|