Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,6 +62,6 @@ def plex(prompt,modil):
|
|
62 |
image = pipe(prompt=prompt, num_inference_steps=10).images[0]
|
63 |
return image
|
64 |
|
65 |
-
iface = gr.Interface(fn=plex,
|
66 |
iface.queue(max_size=1)
|
67 |
iface.launch(max_threads=1)
|
|
|
62 |
image = pipe(prompt=prompt, num_inference_steps=10).images[0]
|
63 |
return image
|
64 |
|
65 |
+
iface = gr.Interface(fn=plex,inputs=[gr.Dropdown(choices=models, type="value", value=models[current]), gr.Textbox(label="Prompt"), gr.Textbox(label="negative_prompt", value="low quality, bad quality")],outputs=gr.Image(label="Generated Output Image"), title="AutoPipelineForText2Image_SD_Multi",description="AutoPipelineForText2Image_SD_Multi")
|
66 |
iface.queue(max_size=1)
|
67 |
iface.launch(max_threads=1)
|