Manjushri commited on
Commit
4a1c283
1 Parent(s): f232c2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def infer(source_img, prompt, negative_prompt, guide, steps, seed, Strength):
21
  image = pipe(prompt, negative_prompt=negative_prompt, init_image=source_image, strength=Strength, guidance_scale=guide, num_inference_steps=steps).images[0]
22
  return image
23
 
24
- gr.Interface(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.')
25
  gr.Slider(2, 15, value = 7, label = 'Guidance Scale'),
26
  gr.Slider(1, 25, value = 10, step = 1, label = 'Number of Iterations'),
27
  gr.Slider(label = "Seed", minimum = 0, maximum = 987654321987654321, step = 1, randomize = True),
 
21
  image = pipe(prompt, negative_prompt=negative_prompt, init_image=source_image, strength=Strength, guidance_scale=guide, num_inference_steps=steps).images[0]
22
  return image
23
 
24
+ gr.Interface(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.'),
25
  gr.Slider(2, 15, value = 7, label = 'Guidance Scale'),
26
  gr.Slider(1, 25, value = 10, step = 1, label = 'Number of Iterations'),
27
  gr.Slider(label = "Seed", minimum = 0, maximum = 987654321987654321, step = 1, randomize = True),