Spaces:
Runtime error
Runtime error
added examples
Browse files
app.py
CHANGED
|
@@ -99,7 +99,20 @@ with gr.Blocks() as demo:
|
|
| 99 |
btn.click(inference, [input_img, num_inference_steps, guidance_scale, seed ], output_img)
|
| 100 |
rm_in_bkg.input(remove_background, input_img, input_img)
|
| 101 |
rm_out_bkg.input(remove_background, output_img, output_img)
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
demo.launch(debug=False)
|
|
|
|
| 99 |
btn.click(inference, [input_img, num_inference_steps, guidance_scale, seed ], output_img)
|
| 100 |
rm_in_bkg.input(remove_background, input_img, input_img)
|
| 101 |
rm_out_bkg.input(remove_background, output_img, output_img)
|
| 102 |
+
|
| 103 |
+
gr.Examples(
|
| 104 |
+
examples=[['extinguisher.png', 75, 4.0, 0],
|
| 105 |
+
['mushroom.png', 75, 4.0, 0],
|
| 106 |
+
['tianw2.png', 75, 4.0, 0],
|
| 107 |
+
['lysol.png', 75, 4.0, 0],
|
| 108 |
+
['ghost-eating-burger.png', 75, 4.0, 0]
|
| 109 |
+
],
|
| 110 |
+
inputs=[input_img, num_inference_steps, guidance_scale, seed],
|
| 111 |
+
outputs=output_img,
|
| 112 |
+
fn=inference,
|
| 113 |
+
cache_examples=True,
|
| 114 |
+
)
|
| 115 |
+
|
| 116 |
|
| 117 |
|
| 118 |
demo.launch(debug=False)
|