alfredplpl commited on
Commit
448bb5b
1 Parent(s): caca1dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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+98)} "
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+98)} "
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+98)}"
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+98)}"
65
  embellish2 += token
66
  pipe.tokenizer.add_tokens(token)
67
  pipe.text_encoder.resize_token_embeddings(len(pipe.tokenizer))