Dagfinn1962 commited on
Commit
6436627
1 Parent(s): b24c245

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -9
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=infer, inputs=[gr.Image(source="upload", type="filepath", label="Raw Image. Must Be .png"), gr.Textbox(label = 'Prompt Input Text. 77 Token (Keyword or Symbol) Maximum'), gr.Textbox(label='What you Do Not want the AI to generate.'),
29
- gr.Slider(2, 15, value = 7, label = 'Guidance Scale'),
30
- gr.Slider(1, 25, value = 10, step = 1, label = 'Number of Iterations'),
31
- gr.Slider(label = "Seed", minimum = 0, maximum = 987654321987654321, step = 1, randomize = True),
32
- gr.Slider(label='Strength', minimum = 0, maximum = 1, step = .05, value = .5)],
33
-
34
- outputs='image', title="Dream Art (SD) ",
 
 
 
 
 
 
 
 
 
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)