JoPmt commited on
Commit
0da8e39
·
1 Parent(s): 1c3e569

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,6 +59,6 @@ def plex(prompt,modil):
59
  image = pipe(prompt=prompt, num_inference_steps=10).images[0]
60
  return image
61
 
62
- iface = gr.Interface(fn=plex,outputs=gr.Image(label="Generated Output Image"),inputs=[gr.Dropdown(choices=models, type="value", value=models[random.randint(1, len(models)), gr.Textbox(label="Prompt"), gr.Textbox(label="negative_prompt", value="low quality, bad quality")])], title="AutoPipelineForText2Image_SD_Multi",description="AutoPipelineForText2Image_SD_Multi")
63
  iface.queue(max_size=1)
64
  iface.launch(max_threads=1)
 
59
  image = pipe(prompt=prompt, num_inference_steps=10).images[0]
60
  return image
61
 
62
+ iface = gr.Interface(fn=plex,outputs=gr.Image(label="Generated Output Image"),inputs=[gr.Dropdown(choices=models, type="value", value=models[random.randint(1, len(models))], gr.Textbox(label="Prompt"), gr.Textbox(label="negative_prompt", value="low quality, bad quality")])], title="AutoPipelineForText2Image_SD_Multi",description="AutoPipelineForText2Image_SD_Multi")
63
  iface.queue(max_size=1)
64
  iface.launch(max_threads=1)