Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,7 @@ from diffusers import AutoPipelineForInpainting, UNet2DConditionModel
|
|
5 |
import diffusers
|
6 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
7 |
|
8 |
-
|
9 |
-
pipe = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", torch_dtype=torch.float16, variant="fp16").to(device)
|
10 |
|
11 |
def read_content(file_path: str) -> str:
|
12 |
"""read the content of target file
|
@@ -80,7 +79,7 @@ with image_blocks as demo:
|
|
80 |
gr.HTML(read_content("header.html"))
|
81 |
with gr.Row():
|
82 |
with gr.Column():
|
83 |
-
image = gr.Image(
|
84 |
with gr.Row(elem_id="prompt-container", mobile_collapse=False, equal_height=True):
|
85 |
with gr.Row():
|
86 |
prompt = gr.Textbox(placeholder="Your prompt (what you want in place of what is erased)", show_label=False, elem_id="prompt")
|
|
|
5 |
import diffusers
|
6 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
7 |
|
8 |
+
pipe = AutoPipelineForInpainting.from_pretrained("SG161222/Realistic_Vision_V5.0_noVAE", variant="fp16")
|
|
|
9 |
|
10 |
def read_content(file_path: str) -> str:
|
11 |
"""read the content of target file
|
|
|
79 |
gr.HTML(read_content("header.html"))
|
80 |
with gr.Row():
|
81 |
with gr.Column():
|
82 |
+
image = gr.Image(elem_id="image_upload", type="pil", label="Upload",height=400,value="sketch")
|
83 |
with gr.Row(elem_id="prompt-container", mobile_collapse=False, equal_height=True):
|
84 |
with gr.Row():
|
85 |
prompt = gr.Textbox(placeholder="Your prompt (what you want in place of what is erased)", show_label=False, elem_id="prompt")
|