Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
7cea0c0
1
Parent(s):
3819ece
22
Browse files
app.py
CHANGED
|
@@ -80,7 +80,7 @@ pipe.to("cuda", torch.bfloat16)
|
|
| 80 |
print("pipe ready.")
|
| 81 |
|
| 82 |
def prepare(edit_dict):
|
| 83 |
-
return edit_dict['
|
| 84 |
|
| 85 |
@spaces.GPU
|
| 86 |
def inference(
|
|
@@ -254,7 +254,7 @@ with gr.Blocks() as demo:
|
|
| 254 |
output_image = gr.Image(label="Generated image", show_label=False)
|
| 255 |
# polished_prompt = gr.Textbox(label="Polished prompt", interactive=False)
|
| 256 |
|
| 257 |
-
with gr.Accordion("Preprocessor data", open=
|
| 258 |
mask_image = gr.Image(label="Mask image", show_label=False)
|
| 259 |
|
| 260 |
gr.Examples(examples=examples, inputs=[edit_dict, prompt])
|
|
|
|
| 80 |
print("pipe ready.")
|
| 81 |
|
| 82 |
def prepare(edit_dict):
|
| 83 |
+
return edit_dict['layers'][0]
|
| 84 |
|
| 85 |
@spaces.GPU
|
| 86 |
def inference(
|
|
|
|
| 254 |
output_image = gr.Image(label="Generated image", show_label=False)
|
| 255 |
# polished_prompt = gr.Textbox(label="Polished prompt", interactive=False)
|
| 256 |
|
| 257 |
+
with gr.Accordion("Preprocessor data", open=True):
|
| 258 |
mask_image = gr.Image(label="Mask image", show_label=False)
|
| 259 |
|
| 260 |
gr.Examples(examples=examples, inputs=[edit_dict, prompt])
|