JoPmt commited on
Commit
5a63c31
1 Parent(s): 67a30fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -122,5 +122,5 @@ def plex(qr_code_value, text, neg_text, modil, one, two, three):
122
  return apol
123
 
124
  iface = gr.Interface(fn=plex, inputs=[gr.Textbox(label="QR Code URL"),gr.Textbox(label="prompt"),gr.Textbox(label="neg prompt"),gr.Dropdown(choices=models, label="some sd models", value=models[0]), gr.Slider(label="num inference steps", minimum=1, step=1, maximum=5, value=5), gr.Slider(label="prompt strength", minimum=0.1, step=0.1, maximum=1, value=0.2), gr.Slider(label="controlnet scale", minimum=0.1, step=0.1, maximum=1, value=0.8)], outputs=gr.Gallery(label="out", columns=1))
125
- iface.queue(max=1)
126
- iface.launch()
 
122
  return apol
123
 
124
  iface = gr.Interface(fn=plex, inputs=[gr.Textbox(label="QR Code URL"),gr.Textbox(label="prompt"),gr.Textbox(label="neg prompt"),gr.Dropdown(choices=models, label="some sd models", value=models[0]), gr.Slider(label="num inference steps", minimum=1, step=1, maximum=5, value=5), gr.Slider(label="prompt strength", minimum=0.1, step=0.1, maximum=1, value=0.2), gr.Slider(label="controlnet scale", minimum=0.1, step=0.1, maximum=1, value=0.8)], outputs=gr.Gallery(label="out", columns=1))
125
+ iface.queue(max_size=1)
126
+ iface.launch(max_threads=1)