fffiloni commited on
Commit
0467673
1 Parent(s): 314ced7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -33,6 +33,9 @@ def get_files(file_paths):
33
  return result
34
 
35
  def load_sfts(repo_1_id, repo_2_id):
 
 
 
36
  # List all ".safetensors" files in repos
37
  sfts_available_files_1 = fs.glob(f"{repo_1_id}/*.safetensors")
38
  sfts_available_files_1 = get_files(sfts_available_files_1)
@@ -164,9 +167,7 @@ with gr.Blocks(css=css) as demo:
164
 
165
  if is_shared_ui:
166
 
167
- your_username = api.whoami()["name"]
168
- my_models = api.list_models(author=your_username, filter=["diffusers", "stable-diffusion-xl", 'lora'])["Model Name"]
169
- print(my_models)
170
 
171
  lora_1_id = gr.Dropdown(
172
  label = "LoRa 1 ID",
 
33
  return result
34
 
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
+ print(my_models)
39
  # List all ".safetensors" files in repos
40
  sfts_available_files_1 = fs.glob(f"{repo_1_id}/*.safetensors")
41
  sfts_available_files_1 = get_files(sfts_available_files_1)
 
167
 
168
  if is_shared_ui:
169
 
170
+
 
 
171
 
172
  lora_1_id = gr.Dropdown(
173
  label = "LoRa 1 ID",