Spaces:
Paused
Paused
Dagfinn1962
commited on
Commit
•
6436627
1
Parent(s):
b24c245
Update app.py
Browse files
app.py
CHANGED
@@ -25,13 +25,21 @@ def infer(source_img, prompt, negative_prompt, guide, steps, seed, Strength):
|
|
25 |
image = pipe(prompt, negative_prompt=negative_prompt, image=source_image, strength=Strength, guidance_scale=guide, num_inference_steps=steps).images[0]
|
26 |
return image
|
27 |
|
28 |
-
gr.Interface(theme='ParityError/Anime', fn=
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
description="<br> <h4> <div style='width:100%'> Info:Dream Art (SD) <br> This App is our favorite now and shows how Stable diffusion works i a good way !</h4> </div>",
|
36 |
-
|
37 |
-
.queue(max_size=5).launch()
|
|
|
25 |
image = pipe(prompt, negative_prompt=negative_prompt, image=source_image, strength=Strength, guidance_scale=guide, num_inference_steps=steps).images[0]
|
26 |
return image
|
27 |
|
28 |
+
gr.Interface(theme='ParityError/Anime', fn=genie, inputs=[gr.Textbox(label='Input field right under here(Prompt)'),
|
29 |
+
gr.Textbox(label='What You dont want (Negative Prompt)'),
|
30 |
+
gr.Slider(512, 1024, 768, step=128, label='Height'),
|
31 |
+
gr.Slider(512, 1024, 768, step=128, label='Width'),
|
32 |
+
gr.Slider(1, maximum=15, value=10, step=.25),
|
33 |
+
gr.Slider(25, maximum=100, value=50, step=25),
|
34 |
+
gr.Slider(minimum=1, step=1, maximum=9999999999999999, randomize=True),
|
35 |
+
# gr.Radio(["Yes", "No"], label='Upscale?'),
|
36 |
+
#gr.Textbox(label='Upscaler Prompt: Optional'),
|
37 |
+
#gr.Textbox(label='Upscaler Negative Prompt: Both Optional And Experimental'),
|
38 |
+
#gr.Slider(minimum=0, maximum=15, value=0, step=1, label='Upscale Guidance Scale'),
|
39 |
+
#gr.Slider(minimum=5, maximum=25, value=5, step=5, label='Upscaler Iterations')
|
40 |
+
|
41 |
+
],
|
42 |
+
outputs=gr.Image(label='Generated Image'),
|
43 |
+
title="Dream Art (SD) ",
|
44 |
description="<br> <h4> <div style='width:100%'> Info:Dream Art (SD) <br> This App is our favorite now and shows how Stable diffusion works i a good way !</h4> </div>",
|
45 |
+
).launch(debug=True, max_threads=True)
|
|