Spaces:
Running
Running
Fabrice-TIERCELIN
commited on
Remove queue function
Browse files
app.py
CHANGED
@@ -59,9 +59,6 @@ def check(
|
|
59 |
):
|
60 |
raise gr.Error("At least one border must be enlarged.")
|
61 |
|
62 |
-
def queue():
|
63 |
-
return []
|
64 |
-
|
65 |
def uncrop(
|
66 |
source_img,
|
67 |
enlarge_top,
|
@@ -115,6 +112,15 @@ def uncrop(
|
|
115 |
if smooth_border is None:
|
116 |
smooth_border = 20
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
if randomize_seed:
|
119 |
seed = random.randint(0, max_64_bit_int)
|
120 |
|
@@ -343,7 +349,7 @@ with gr.Blocks() as interface:
|
|
343 |
seed,
|
344 |
debug_mode
|
345 |
], outputs = [], queue = False,
|
346 |
-
show_progress = False).success(
|
347 |
source_img,
|
348 |
enlarge_top,
|
349 |
enlarge_right,
|
|
|
59 |
):
|
60 |
raise gr.Error("At least one border must be enlarged.")
|
61 |
|
|
|
|
|
|
|
62 |
def uncrop(
|
63 |
source_img,
|
64 |
enlarge_top,
|
|
|
112 |
if smooth_border is None:
|
113 |
smooth_border = 20
|
114 |
|
115 |
+
if denoising_steps is None:
|
116 |
+
denoising_steps = 1000
|
117 |
+
|
118 |
+
if num_inference_steps is None:
|
119 |
+
num_inference_steps = 50
|
120 |
+
|
121 |
+
if guidance_scale is None:
|
122 |
+
guidance_scale = 7
|
123 |
+
|
124 |
if randomize_seed:
|
125 |
seed = random.randint(0, max_64_bit_int)
|
126 |
|
|
|
349 |
seed,
|
350 |
debug_mode
|
351 |
], outputs = [], queue = False,
|
352 |
+
show_progress = False).success(uncrop, inputs = [
|
353 |
source_img,
|
354 |
enlarge_top,
|
355 |
enlarge_right,
|