DemiPoto commited on
Commit
06b1f29
·
verified ·
1 Parent(s): 8c254a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -48,6 +48,7 @@ def load_fn(models):
48
  m = gr.Interface(lambda txt: None, ['text'], ['image'])
49
  print(error)
50
  models_load.update({model: m})
 
51
 
52
 
53
  load_fn(models)
@@ -282,14 +283,17 @@ def make_me():
282
  cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0, interactive = True)
283
  seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1, interactive = True)
284
 
285
- list_param=gr.Dropdown(choices=[["a",[["","",0,0,0,0,-1]]]], value=[["","",0,0,0,0,-1]], visible=False)
 
286
 
287
- add_param=gr.Button("add to the list")
288
- del_param=gr.Button("delete to the list")
 
289
  #gen_button = gr.Button('Generate images', scale=3)
290
  #stop_button = gr.Button('Stop', variant='secondary', interactive=False, scale=1)
291
  #gen_button.click(lambda: gr.update(interactive=True), None, stop_button)
292
-
 
293
  disp_param = gr.Examples(
294
  label="list of prompt",
295
  examples=list_param.value,
 
48
  m = gr.Interface(lambda txt: None, ['text'], ['image'])
49
  print(error)
50
  models_load.update({model: m})
51
+ print(models_load)
52
 
53
 
54
  load_fn(models)
 
283
  cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0, interactive = True)
284
  seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1, interactive = True)
285
 
286
+ add_param=gr.Button("Add to the list")
287
+ del_param=gr.Button("Delete to the list")
288
 
289
+ with gr.Row():
290
+ nb_images_by_prompt=gr.Number("Number of images by prompt:",value=2,interactive=True)
291
+ nb_of_models_to_gen=gr.Number("Number of Models:",value=10,interactive=True)
292
  #gen_button = gr.Button('Generate images', scale=3)
293
  #stop_button = gr.Button('Stop', variant='secondary', interactive=False, scale=1)
294
  #gen_button.click(lambda: gr.update(interactive=True), None, stop_button)
295
+
296
+ list_param=gr.Dropdown(choices=[["a",[["","",0,0,0,0,-1]]]], value=[["","",0,0,0,0,-1]], visible=False)
297
  disp_param = gr.Examples(
298
  label="list of prompt",
299
  examples=list_param.value,