Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
dd9f18e
1
Parent(s):
ba0dbe6
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ if "string_to_param" in embeddings_dict:
|
|
40 |
embeddings = next(iter(embeddings_dict['string_to_param'].values()))
|
41 |
nfixer = ""
|
42 |
for i, emb in enumerate(embeddings):
|
43 |
-
token = f"sksd{chr(i+
|
44 |
nfixer += token
|
45 |
pipe.tokenizer.add_tokens(token)
|
46 |
pipe.text_encoder.resize_token_embeddings(len(pipe.tokenizer))
|
@@ -61,7 +61,7 @@ if "string_to_param" in embeddings_dict:
|
|
61 |
embeddings = next(iter(embeddings_dict['string_to_param'].values()))
|
62 |
embellish2 = ""
|
63 |
for i, emb in enumerate(embeddings):
|
64 |
-
token = f"kskd{chr(i+
|
65 |
embellish2 += token
|
66 |
pipe.tokenizer.add_tokens(token)
|
67 |
pipe.text_encoder.resize_token_embeddings(len(pipe.tokenizer))
|
|
|
40 |
embeddings = next(iter(embeddings_dict['string_to_param'].values()))
|
41 |
nfixer = ""
|
42 |
for i, emb in enumerate(embeddings):
|
43 |
+
token = f"sksd{chr(i+65)}"
|
44 |
nfixer += token
|
45 |
pipe.tokenizer.add_tokens(token)
|
46 |
pipe.text_encoder.resize_token_embeddings(len(pipe.tokenizer))
|
|
|
61 |
embeddings = next(iter(embeddings_dict['string_to_param'].values()))
|
62 |
embellish2 = ""
|
63 |
for i, emb in enumerate(embeddings):
|
64 |
+
token = f"kskd{chr(i%26+65)}{chr(i//26+65)}"
|
65 |
embellish2 += token
|
66 |
pipe.tokenizer.add_tokens(token)
|
67 |
pipe.text_encoder.resize_token_embeddings(len(pipe.tokenizer))
|