Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ pipe = StableDiffusionXLFillPipeline.from_pretrained(
|
|
45 |
pipe.scheduler = TCDScheduler.from_config(pipe.scheduler.config)
|
46 |
|
47 |
|
48 |
-
@spaces.GPU(
|
49 |
def fill_image(prompt, image, model_selection, paste_back):
|
50 |
(
|
51 |
prompt_embeds,
|
@@ -87,13 +87,13 @@ def clear_result():
|
|
87 |
return gr.update(value=None)
|
88 |
|
89 |
|
90 |
-
title = """<h1 align="center">NUDIFIER APP
|
91 |
<div align="center">Draw the mask over the subject you want to erase or change and write what you want to inpaint it with.</div>
|
92 |
<div align="center">It will start after a few seconds just sit back and see magic happends ....</div>
|
93 |
|
94 |
"""
|
95 |
|
96 |
-
|
97 |
gr.HTML(title)
|
98 |
with gr.Row():
|
99 |
with gr.Column():
|
@@ -172,4 +172,4 @@ with gr.Blocks() as demo:
|
|
172 |
)
|
173 |
|
174 |
|
175 |
-
demo.launch(share=
|
|
|
45 |
pipe.scheduler = TCDScheduler.from_config(pipe.scheduler.config)
|
46 |
|
47 |
|
48 |
+
@spaces.GPU(duration=72)
|
49 |
def fill_image(prompt, image, model_selection, paste_back):
|
50 |
(
|
51 |
prompt_embeds,
|
|
|
87 |
return gr.update(value=None)
|
88 |
|
89 |
|
90 |
+
title = """<h1 align="center">NUDIFIER APP
|
91 |
<div align="center">Draw the mask over the subject you want to erase or change and write what you want to inpaint it with.</div>
|
92 |
<div align="center">It will start after a few seconds just sit back and see magic happends ....</div>
|
93 |
|
94 |
"""
|
95 |
|
96 |
+
ith gr.Blocks() as demo:
|
97 |
gr.HTML(title)
|
98 |
with gr.Row():
|
99 |
with gr.Column():
|
|
|
172 |
)
|
173 |
|
174 |
|
175 |
+
demo.launch(share=True)
|