Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,8 +77,8 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
| 77 |
@spaces.GPU
|
| 78 |
def infer(
|
| 79 |
image_subject,
|
| 80 |
-
image_background=None,
|
| 81 |
prompt="",
|
|
|
|
| 82 |
seed=42,
|
| 83 |
randomize_seed=True,
|
| 84 |
true_guidance_scale=1,
|
|
@@ -146,10 +146,10 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 146 |
|
| 147 |
gr.Examples(
|
| 148 |
examples=[
|
| 149 |
-
["fusion_car.png"],["fusion_shoes.png"],
|
| 150 |
|
| 151 |
],
|
| 152 |
-
inputs=[image_subject],
|
| 153 |
outputs=[result,seed],
|
| 154 |
fn=infer,
|
| 155 |
cache_examples="lazy",
|
|
|
|
| 77 |
@spaces.GPU
|
| 78 |
def infer(
|
| 79 |
image_subject,
|
|
|
|
| 80 |
prompt="",
|
| 81 |
+
image_background=None,
|
| 82 |
seed=42,
|
| 83 |
randomize_seed=True,
|
| 84 |
true_guidance_scale=1,
|
|
|
|
| 146 |
|
| 147 |
gr.Examples(
|
| 148 |
examples=[
|
| 149 |
+
["fusion_car.png", ""],["fusion_shoes.png", ""],["wednesday_product.png", "put the product in her hand"]
|
| 150 |
|
| 151 |
],
|
| 152 |
+
inputs=[image_subject, prompt],
|
| 153 |
outputs=[result,seed],
|
| 154 |
fn=infer,
|
| 155 |
cache_examples="lazy",
|