Spaces:
Running
Running
Update app.py
Browse files
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(
|
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", 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"),
|