Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,8 @@ def plex(img, cook, one, two, three):
|
|
43 |
|
44 |
# We can leave the prompt empty
|
45 |
primpt = ""
|
46 |
-
prior_out = pope_prior.interpolate(images_texts, weights)
|
47 |
-
imas = pope(**prior_out, height=512, width=512).images[0]
|
48 |
return imas
|
49 |
|
50 |
iface = gr.Interface(fn=plex,inputs=[gr.Image(label="drop", type="pil"), gr.Textbox(label="prompt"), gr.Slider(label="Text Guide",minimum=0.01,step=0.01,maximum=1,value=0.5), gr.Slider(label="Your Image Guide",minimum=0.01,step=0.01,maximum=1,value=0.5),gr.Slider(label="Generated Image Guide",minimum=0.01,step=0.01,maximum=1,value=0.3)], outputs=gr.Image(), title="Ksky22 Cntrl Gdd Interp", description="ksky22 Cntrl Gdd Interp")
|
|
|
43 |
|
44 |
# We can leave the prompt empty
|
45 |
primpt = ""
|
46 |
+
prior_out = pope_prior.interpolate(images_texts, weights, num_inference_steps=5)
|
47 |
+
imas = pope(**prior_out, height=512, width=512, num_inference_steps=25).images[0]
|
48 |
return imas
|
49 |
|
50 |
iface = gr.Interface(fn=plex,inputs=[gr.Image(label="drop", type="pil"), gr.Textbox(label="prompt"), gr.Slider(label="Text Guide",minimum=0.01,step=0.01,maximum=1,value=0.5), gr.Slider(label="Your Image Guide",minimum=0.01,step=0.01,maximum=1,value=0.5),gr.Slider(label="Generated Image Guide",minimum=0.01,step=0.01,maximum=1,value=0.3)], outputs=gr.Image(), title="Ksky22 Cntrl Gdd Interp", description="ksky22 Cntrl Gdd Interp")
|