John6666 commited on
Commit
de246dc
1 Parent(s): ac5827a

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +1 -0
  2. multit2i.py +1 -1
README.md CHANGED
@@ -6,6 +6,7 @@ colorTo: purple
6
  sdk: gradio
7
  sdk_version: 4.39.0
8
  app_file: app.py
 
9
  pinned: false
10
  ---
11
 
 
6
  sdk: gradio
7
  sdk_version: 4.39.0
8
  app_file: app.py
9
+ short_description: Text-to-Image
10
  pinned: false
11
  ---
12
 
multit2i.py CHANGED
@@ -27,7 +27,7 @@ def find_model_list(author: str="", tags: list[str]=[], not_tag="", sort: str="l
27
  if not sort: sort = "last_modified"
28
  models = []
29
  try:
30
- model_infos = api.list_models(author=author, task="text-to-image", pipeline_tag="text-to-image",
31
  tags=list_uniq(default_tags + tags), cardData=True, sort=sort, limit=limit * 5)
32
  except Exception as e:
33
  print(f"Error: Failed to list models.")
 
27
  if not sort: sort = "last_modified"
28
  models = []
29
  try:
30
+ model_infos = api.list_models(author=author, pipeline_tag="text-to-image",
31
  tags=list_uniq(default_tags + tags), cardData=True, sort=sort, limit=limit * 5)
32
  except Exception as e:
33
  print(f"Error: Failed to list models.")