Dagfinn1962 commited on
Commit
4e95c68
·
verified ·
1 Parent(s): b1aad9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(enable_queue=True)
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
- with gr.Blocks() as demo:
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=False)
 
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)