John6666 commited on
Commit
3910b1e
β€’
1 Parent(s): 1a04b3b

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +5 -2
  2. externalmod.py +1 -1
app.py CHANGED
@@ -150,9 +150,12 @@ with gr.Blocks(theme='John6666/YntecDark', fill_width=True, css=css) as myface:
150
  fn=send_it1,
151
  inputs=[magic1, model_name1, neg_input, height, width, steps, cfg, seed],
152
  outputs=[output1],
 
 
153
  )
154
- use_short.click(short_prompt, inputs=[input_text], outputs=magic1)
155
- see_prompts.click(text_it1, inputs=[input_text], outputs=magic1)
156
 
157
  myface.queue(default_concurrency_limit=200, max_size=200)
158
  myface.launch(show_api=False, max_threads=400)
 
 
150
  fn=send_it1,
151
  inputs=[magic1, model_name1, neg_input, height, width, steps, cfg, seed],
152
  outputs=[output1],
153
+ concurrency_limit=None,
154
+ queue=False,
155
  )
156
+ use_short.click(short_prompt, inputs=[input_text], outputs=magic1, queue=False)
157
+ see_prompts.click(text_it1, inputs=[input_text], outputs=magic1, queue=False)
158
 
159
  myface.queue(default_concurrency_limit=200, max_size=200)
160
  myface.launch(show_api=False, max_threads=400)
161
+ # https://github.com/gradio-app/gradio/issues/6339
externalmod.py CHANGED
@@ -570,7 +570,7 @@ def find_model_list(author: str="", tags: list[str]=[], not_tag="", sort: str="l
570
  limit = limit * 20 if check_status and force_gpu else limit * 5
571
  models = []
572
  try:
573
- model_infos = api.list_models(author=author, task="text-to-image",
574
  tags=list_uniq(default_tags + tags), cardData=True, sort=sort, limit=limit)
575
  except Exception as e:
576
  print(f"Error: Failed to list models.")
 
570
  limit = limit * 20 if check_status and force_gpu else limit * 5
571
  models = []
572
  try:
573
+ model_infos = api.list_models(author=author, #task="text-to-image",
574
  tags=list_uniq(default_tags + tags), cardData=True, sort=sort, limit=limit)
575
  except Exception as e:
576
  print(f"Error: Failed to list models.")