alfredplpl commited on
Commit
cbca74f
1 Parent(s): 6102167

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -40,7 +40,6 @@ def error_str(error, title="Error"):
40
  return f"""#### {title}
41
  {error}""" if error else ""
42
 
43
- @spaces.GPU
44
  def inference(prompt, guidance, steps, seed=0, neg_prompt="", disable_auto_prompt_correction=False):
45
  global pipe
46
 
@@ -95,7 +94,7 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,disable_auto_prompt_correctio
95
 
96
  return prompt,neg_prompt
97
 
98
- #
99
  def txt_to_img(prompt, neg_prompt, guidance, steps, width, height, generator):
100
  conditioning, pooled = compel(prompt)
101
  neg_conditioning, neg_pooled = compel(neg_prompt)
 
40
  return f"""#### {title}
41
  {error}""" if error else ""
42
 
 
43
  def inference(prompt, guidance, steps, seed=0, neg_prompt="", disable_auto_prompt_correction=False):
44
  global pipe
45
 
 
94
 
95
  return prompt,neg_prompt
96
 
97
+ @spaces.GPU
98
  def txt_to_img(prompt, neg_prompt, guidance, steps, width, height, generator):
99
  conditioning, pooled = compel(prompt)
100
  neg_conditioning, neg_pooled = compel(neg_prompt)