Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def get_files(file_paths):
|
|
35 |
def load_sfts(repo_1_id, repo_2_id):
|
36 |
your_username = api.whoami()["name"]
|
37 |
my_models = api.list_models(author=your_username, filter=["diffusers", "stable-diffusion-xl", 'lora'])
|
38 |
-
model_names = [item
|
39 |
print(model_names)
|
40 |
# List all ".safetensors" files in repos
|
41 |
sfts_available_files_1 = fs.glob(f"{repo_1_id}/*.safetensors")
|
|
|
35 |
def load_sfts(repo_1_id, repo_2_id):
|
36 |
your_username = api.whoami()["name"]
|
37 |
my_models = api.list_models(author=your_username, filter=["diffusers", "stable-diffusion-xl", 'lora'])
|
38 |
+
model_names = [item.modelId for item in my_models]
|
39 |
print(model_names)
|
40 |
# List all ".safetensors" files in repos
|
41 |
sfts_available_files_1 = fs.glob(f"{repo_1_id}/*.safetensors")
|