Spaces:
Running
on
Zero
Running
on
Zero
Kohaku-Blueleaf
commited on
Commit
•
728f439
1
Parent(s):
7cb3ad7
remove load tokenizer
Browse files
app.py
CHANGED
@@ -110,7 +110,6 @@ masterpiece, newest, absurdres, {rating}"""
|
|
110 |
|
111 |
|
112 |
if __name__ == "__main__":
|
113 |
-
tokenizer: LlamaTokenizer = LlamaTokenizer.from_pretrained(MODEL_PATH)
|
114 |
if not os.path.isfile("./model.gguf"):
|
115 |
data = rq.get("https://huggingface.co/KBlueLeaf/DanTagGen/resolve/main/ggml-model-Q6_K.gguf").content
|
116 |
with open("./model.gguf", "wb") as f:
|
@@ -137,7 +136,7 @@ if __name__ == "__main__":
|
|
137 |
):
|
138 |
yield from get_result(
|
139 |
text_model,
|
140 |
-
|
141 |
rating,
|
142 |
artist,
|
143 |
characters,
|
|
|
110 |
|
111 |
|
112 |
if __name__ == "__main__":
|
|
|
113 |
if not os.path.isfile("./model.gguf"):
|
114 |
data = rq.get("https://huggingface.co/KBlueLeaf/DanTagGen/resolve/main/ggml-model-Q6_K.gguf").content
|
115 |
with open("./model.gguf", "wb") as f:
|
|
|
136 |
):
|
137 |
yield from get_result(
|
138 |
text_model,
|
139 |
+
None,
|
140 |
rating,
|
141 |
artist,
|
142 |
characters,
|