Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ default_negative_prompt= "Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly d
|
|
23 |
|
24 |
# Load pipeline
|
25 |
|
26 |
-
pipe=None
|
27 |
|
28 |
def get_pipe():
|
29 |
if pipe is None:
|
@@ -60,8 +60,8 @@ def get_pipe():
|
|
60 |
# print(f"Optimizing finished successfully after {time.time()-t} secs")
|
61 |
|
62 |
@spaces.GPU(enable_queue=True)
|
63 |
-
def infer(prompt,negative_prompt,seed,resolution, steps):
|
64 |
-
|
65 |
pipe = get_pipe()
|
66 |
|
67 |
print(f"""
|
@@ -148,7 +148,8 @@ with gr.Blocks(css=css) as demo:
|
|
148 |
negative_prompt,
|
149 |
seed,
|
150 |
resolution,
|
151 |
-
steps
|
|
|
152 |
],
|
153 |
outputs = [
|
154 |
result
|
|
|
23 |
|
24 |
# Load pipeline
|
25 |
|
26 |
+
pipe = None:
|
27 |
|
28 |
def get_pipe():
|
29 |
if pipe is None:
|
|
|
60 |
# print(f"Optimizing finished successfully after {time.time()-t} secs")
|
61 |
|
62 |
@spaces.GPU(enable_queue=True)
|
63 |
+
def infer(prompt,negative_prompt,seed,resolution, steps,get_pipe):
|
64 |
+
|
65 |
pipe = get_pipe()
|
66 |
|
67 |
print(f"""
|
|
|
148 |
negative_prompt,
|
149 |
seed,
|
150 |
resolution,
|
151 |
+
steps,
|
152 |
+
get_pipe
|
153 |
],
|
154 |
outputs = [
|
155 |
result
|