Yntec commited on
Commit
20fd246
β€’
1 Parent(s): 8132215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -47,15 +47,14 @@ with gr.Blocks() as demo:
47
  model_choice2 = gr.Dropdown(models, label = 'Choose a model from the 686 available!', value = models[0], filterable = False)
48
  txt_input2 = gr.Textbox(label = 'Your prompt:')
49
 
50
- current_images = 1
51
- max_images = 6
52
 
53
  gen_button2 = gr.Button('Generate up to 6 images in up to 3 minutes total')
54
  stop_button2 = gr.Button('Stop', variant = 'secondary', interactive = False)
55
  gen_button2.click(lambda s: gr.update(interactive = True), None, stop_button2)
56
  with gr.Column():
57
- num_images = gr.Slider(current_images, max_images, value = 1, step = 1, label = 'Number of images')
58
- output2 = [gr.Image(label = '') for _ in range(6)]
59
  for i, o in enumerate(output2):
60
  num_models = num_images
61
  img_i = gr.Number(i, visible = False)
 
47
  model_choice2 = gr.Dropdown(models, label = 'Choose a model from the 686 available!', value = models[0], filterable = False)
48
  txt_input2 = gr.Textbox(label = 'Your prompt:')
49
 
50
+ max_images = 1
 
51
 
52
  gen_button2 = gr.Button('Generate up to 6 images in up to 3 minutes total')
53
  stop_button2 = gr.Button('Stop', variant = 'secondary', interactive = False)
54
  gen_button2.click(lambda s: gr.update(interactive = True), None, stop_button2)
55
  with gr.Column():
56
+ num_images = 1
57
+ output2 = [gr.Image(label = '') for _ in range(1)]
58
  for i, o in enumerate(output2):
59
  num_models = num_images
60
  img_i = gr.Number(i, visible = False)