Manjushri commited on
Commit
e14b75b
1 Parent(s): dee6aff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,7 +22,8 @@ def infer(source_img, prompt, steps, seed, Strength):
22
  image = pipe(prompt, image=source_image, strength=Strength, guidance_scale=0.0, num_inference_steps=steps).images[0]
23
  return image
24
 
25
- gr.Interface(fn=infer, inputs=[gr.Image(sources=["upload", "webcam", "clipboard"], type="pil", label="Raw Image."),
 
26
  gr.Textbox(label = 'Prompt Input Text. 77 Token (Keyword or Symbol) Maximum'),
27
  gr.Slider(2, 5, value = 2, step = 1, label = 'Number of Iterations'),
28
  gr.Slider(label = "Seed", minimum = 0, maximum = 987654321987654321, step = 1, randomize = True),
 
22
  image = pipe(prompt, image=source_image, strength=Strength, guidance_scale=0.0, num_inference_steps=steps).images[0]
23
  return image
24
 
25
+ gr.Interface(fn=infer, inputs=[
26
+ gr.Image(sources=["upload", "webcam", "clipboard"], type="filepath", label="Raw Image."),
27
  gr.Textbox(label = 'Prompt Input Text. 77 Token (Keyword or Symbol) Maximum'),
28
  gr.Slider(2, 5, value = 2, step = 1, label = 'Number of Iterations'),
29
  gr.Slider(label = "Seed", minimum = 0, maximum = 987654321987654321, step = 1, randomize = True),