Uthar commited on
Commit
2bbed1f
·
verified ·
1 Parent(s): 40293b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -40,10 +40,6 @@ inference_timeout = 400
40
  default_models = models[:num_models]
41
  MAX_SEED = 2**32-1
42
 
43
- def imgageHasUpdated(theImage):
44
- print(theImage)
45
- # outputs=lnk_output
46
-
47
  def extend_choices(choices):
48
  return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
49
 
@@ -113,7 +109,6 @@ def add_gallery(image, model_str, gallery):
113
  if gallery is None: gallery = []
114
  with lock:
115
  if image is not None: gallery.insert(0, (image, model_str))
116
- # if image is not None: imgageHasUpdated(model_str)
117
  return gallery
118
 
119
  JS="""
@@ -259,7 +254,6 @@ with gr.Blocks(head=CSS + JS) as demo:
259
  with gr.Column(scale=2):
260
  with gr.Group():
261
  txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=3, autofocus=1)
262
- lnk_output = gr.Textbox(label='The Link:',visible=True,interactive=False,elem_id="LnkBox")
263
  neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
264
  with gr.Accordion("Advanced", open=False, visible=True):
265
  with gr.Row():
@@ -287,7 +281,6 @@ with gr.Blocks(head=CSS + JS) as demo:
287
  for m, o in zip(current_models, output):
288
  gen_event = gr.on(triggers=[gen_button.click, txt_input.submit], fn=gen_fn,inputs=[m, txt_input, neg_input, height, width, steps, cfg, seed], outputs=[o], concurrency_limit=None, queue=False)
289
  # o.change(add_gallery, [o, m, gallery], [gallery])
290
- # o.change(imgageHasUpdated,[o])
291
 
292
  with gr.Column(scale=4):
293
  with gr.Accordion('Model selection'):
 
40
  default_models = models[:num_models]
41
  MAX_SEED = 2**32-1
42
 
 
 
 
 
43
  def extend_choices(choices):
44
  return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
45
 
 
109
  if gallery is None: gallery = []
110
  with lock:
111
  if image is not None: gallery.insert(0, (image, model_str))
 
112
  return gallery
113
 
114
  JS="""
 
254
  with gr.Column(scale=2):
255
  with gr.Group():
256
  txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=3, autofocus=1)
 
257
  neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
258
  with gr.Accordion("Advanced", open=False, visible=True):
259
  with gr.Row():
 
281
  for m, o in zip(current_models, output):
282
  gen_event = gr.on(triggers=[gen_button.click, txt_input.submit], fn=gen_fn,inputs=[m, txt_input, neg_input, height, width, steps, cfg, seed], outputs=[o], concurrency_limit=None, queue=False)
283
  # o.change(add_gallery, [o, m, gallery], [gallery])
 
284
 
285
  with gr.Column(scale=4):
286
  with gr.Accordion('Model selection'):