Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def plex(cook, one, two):
|
|
22 |
negative_prompt = "lowres,text,bad quality,low quality,jpeg artifacts,ugly,bad hands,bad face,blurry,bad eyes,watermark,signature"
|
23 |
warp_out = warp_prior(prompt=cook, height=512,width=512,negative_prompt=negative_prompt,guidance_scale=two,timestep=DEFAULT_STAGE_C_TIMESTEPS,num_inference_steps=one)
|
24 |
primpt = ""
|
25 |
-
imas = warp(image_embeddings=warp_out.image_embeddings, height=512, width=512, num_inference_steps=one, timestep=DEFAULT_STAGE_C_TIMESTEPS,prompt=cook,negative_prompt=primpt,guidance_scale=0.0,output_type="pil").images
|
26 |
return imas
|
27 |
|
28 |
iface = gr.Interface(fn=plex,inputs=[gr.Textbox(label="prompt"), gr.Slider(label="Inference steps",minimum=1,step=1,maximum=10,value=5), gr.Slider(label="Prior guidance scale",minimum=4.1,step=0.1,maximum=19.9,value=4.1)],outputs=gr.Image(label="Generated Output Image"), title="Txt2Img Wrstchn SD", description="Txt2Img Wrstchn SD")
|
|
|
22 |
negative_prompt = "lowres,text,bad quality,low quality,jpeg artifacts,ugly,bad hands,bad face,blurry,bad eyes,watermark,signature"
|
23 |
warp_out = warp_prior(prompt=cook, height=512,width=512,negative_prompt=negative_prompt,guidance_scale=two,timestep=DEFAULT_STAGE_C_TIMESTEPS,num_inference_steps=one)
|
24 |
primpt = ""
|
25 |
+
imas = warp(image_embeddings=warp_out.image_embeddings, height=512, width=512, num_inference_steps=one, timestep=DEFAULT_STAGE_C_TIMESTEPS,prompt=cook,negative_prompt=primpt,guidance_scale=0.0,output_type="pil").images[0]
|
26 |
return imas
|
27 |
|
28 |
iface = gr.Interface(fn=plex,inputs=[gr.Textbox(label="prompt"), gr.Slider(label="Inference steps",minimum=1,step=1,maximum=10,value=5), gr.Slider(label="Prior guidance scale",minimum=4.1,step=0.1,maximum=19.9,value=4.1)],outputs=gr.Image(label="Generated Output Image"), title="Txt2Img Wrstchn SD", description="Txt2Img Wrstchn SD")
|