Yntec commited on
Commit
08e8fe5
β€’
1 Parent(s): 02001b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -43,7 +43,7 @@ def gen_fn(model_str, prompt):
43
 
44
 
45
  with gr.Blocks() as demo:
46
- with gr.Tab('The Dream'):
47
  txt_input = gr.Textbox(label = 'Your prompt:', lines=4).style(container=False,min_width=1200)
48
  gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
49
  stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
@@ -68,9 +68,10 @@ with gr.Blocks() as demo:
68
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
69
  stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
70
  with gr.Accordion('Model selection'):
71
- model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the 686 available!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
72
- model_choice.change(update_imgbox, model_choice, output)
73
- model_choice.change(extend_choices, model_choice, current_models)
 
74
  with gr.Row():
75
  gr.HTML(
76
  """
 
43
 
44
 
45
  with gr.Blocks() as demo:
46
+ with gr.Tab('Printing Press'):
47
  txt_input = gr.Textbox(label = 'Your prompt:', lines=4).style(container=False,min_width=1200)
48
  gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
49
  stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
 
68
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
69
  stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
70
  with gr.Accordion('Model selection'):
71
+ #model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the 686 available!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
72
+ gr.Dropdown(models, label = 'Choose a model from the 686 available!', value = models[0], filterable = False)
73
+ #model_choice.change(update_imgbox, model_choice, output)
74
+ #model_choice.change(extend_choices, model_choice, current_models)
75
  with gr.Row():
76
  gr.HTML(
77
  """