Update app.py
Browse files
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=[
|
|
|
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),
|