Manjushri commited on
Commit
ebea1e6
1 Parent(s): abaf5e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def infer(source_img, instructions, guide, steps, seed, Strength):
24
  num_inference_steps=steps, generator=generator,).images[0]
25
  return image
26
 
27
- gr.Interface(fn=infer, inputs=[gr.Image(sources="upload", type="filepath", label="Raw Image. Must Be .png"),
28
  gr.Textbox(label = 'Input Instructions. 77 Token (Keyword or Symbol) Maximum'),
29
  gr.Slider(2, 15, value = 7.5, label = 'Instructions Strength:'),
30
  gr.Slider(1, 20, value = 5, step = 1, label = "Number of Iterations: More take longer, but aren't always better"),
 
24
  num_inference_steps=steps, generator=generator,).images[0]
25
  return image
26
 
27
+ gr.Interface(fn=infer, inputs=[gr.Image(sources=["upload", "webcam", "clipboard"], type="filepath", label="Raw Image. Must Be .png"),
28
  gr.Textbox(label = 'Input Instructions. 77 Token (Keyword or Symbol) Maximum'),
29
  gr.Slider(2, 15, value = 7.5, label = 'Instructions Strength:'),
30
  gr.Slider(1, 20, value = 5, step = 1, label = "Number of Iterations: More take longer, but aren't always better"),