Spaces:
Runtime error
Runtime error
Commit
Β·
6f8b03b
1
Parent(s):
7332a57
Update app.py
Browse filesAdd models list filter for ahx only
app.py
CHANGED
@@ -123,8 +123,11 @@ def load_learned_embed_in_clip(learned_embeds_path, text_encoder, tokenizer, tok
|
|
123 |
text_encoder.get_input_embeddings().weight.data[token_id] = embeds
|
124 |
return token
|
125 |
|
|
|
|
|
|
|
126 |
print("Setting up the public library")
|
127 |
-
for model in
|
128 |
model_content = {}
|
129 |
model_id = model.modelId
|
130 |
model_content["id"] = model_id
|
|
|
123 |
text_encoder.get_input_embeddings().weight.data[token_id] = embeds
|
124 |
return token
|
125 |
|
126 |
+
|
127 |
+
ahx_model_list = [model for model in models_list if "ahx" in model.modelId]
|
128 |
+
|
129 |
print("Setting up the public library")
|
130 |
+
for model in ahx_model_list:
|
131 |
model_content = {}
|
132 |
model_id = model.modelId
|
133 |
model_content["id"] = model_id
|