charliebaby2023 commited on
Commit
e8d215b
·
verified ·
1 Parent(s): 1333462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -61,7 +61,7 @@ load_fn(models)
61
 
62
  num_models = howManyModelsToUse
63
  max_images = howManyModelsToUse
64
- inference_timeout = 400
65
  default_models = models[:num_models]
66
  MAX_SEED = 2**32-1
67
 
@@ -145,9 +145,10 @@ with gr.Blocks(fill_width=True) as demo:
145
  with gr.Column(scale=2):
146
  with gr.Group():
147
  txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=3, autofocus=1)
148
- neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
149
  with gr.Accordion("Advanced", open=False, visible=True):
150
  with gr.Row():
 
 
151
  width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
152
  height = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
153
  with gr.Row():
@@ -186,9 +187,10 @@ with gr.Blocks(fill_width=True) as demo:
186
  model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
187
  with gr.Group():
188
  txt_input2 = gr.Textbox(label='Your prompt:', value = preSetPrompt, lines=3, autofocus=1)
189
- neg_input2 = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
190
  with gr.Accordion("Advanced", open=False, visible=True):
191
  with gr.Row():
 
 
192
  width2 = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
193
  height2 = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
194
  with gr.Row():
 
61
 
62
  num_models = howManyModelsToUse
63
  max_images = howManyModelsToUse
64
+ inference_timeout = 60
65
  default_models = models[:num_models]
66
  MAX_SEED = 2**32-1
67
 
 
145
  with gr.Column(scale=2):
146
  with gr.Group():
147
  txt_input = gr.Textbox(label='Your prompt:', value=preSetPrompt, lines=3, autofocus=1)
 
148
  with gr.Accordion("Advanced", open=False, visible=True):
149
  with gr.Row():
150
+ neg_input = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
151
+ with gr.Row():
152
  width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
153
  height = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
154
  with gr.Row():
 
187
  model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
188
  with gr.Group():
189
  txt_input2 = gr.Textbox(label='Your prompt:', value = preSetPrompt, lines=3, autofocus=1)
 
190
  with gr.Accordion("Advanced", open=False, visible=True):
191
  with gr.Row():
192
+ neg_input2 = gr.Textbox(label='Negative prompt:', value=negPreSetPrompt, lines=1)
193
+ with gr.Row():
194
  width2 = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
195
  height2 = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
196
  with gr.Row():