Update app.py
Browse files
app.py
CHANGED
@@ -327,6 +327,9 @@ with gr.Blocks() as demo:
|
|
327 |
|
328 |
add_button = gr.Button("Run Editing (Check Log for Completion)")
|
329 |
def run_edit_text_wrapper(
|
|
|
|
|
|
|
330 |
num_tokens,
|
331 |
guidance_scale,
|
332 |
num_sampling_steps ,
|
@@ -338,6 +341,9 @@ with gr.Blocks() as demo:
|
|
338 |
|
339 |
run_edit_text = partial(
|
340 |
run_main,
|
|
|
|
|
|
|
341 |
load_trained=True,
|
342 |
text=True,
|
343 |
num_tokens = int(num_tokens_global.value),
|
@@ -353,7 +359,9 @@ with gr.Blocks() as demo:
|
|
353 |
return load_pil_img()
|
354 |
|
355 |
add_button.click(run_edit_text_wrapper,
|
356 |
-
inputs = [
|
|
|
|
|
357 |
guidance_scale,
|
358 |
num_sampling_steps,
|
359 |
strength ,
|
|
|
327 |
|
328 |
add_button = gr.Button("Run Editing (Check Log for Completion)")
|
329 |
def run_edit_text_wrapper(
|
330 |
+
mask_np_list,
|
331 |
+
mask_label_list,
|
332 |
+
image,
|
333 |
num_tokens,
|
334 |
guidance_scale,
|
335 |
num_sampling_steps ,
|
|
|
341 |
|
342 |
run_edit_text = partial(
|
343 |
run_main,
|
344 |
+
mask_np_list=mask_np_list,
|
345 |
+
mask_label_list=mask_label_list,
|
346 |
+
image_gt=np.array(image),
|
347 |
load_trained=True,
|
348 |
text=True,
|
349 |
num_tokens = int(num_tokens_global.value),
|
|
|
359 |
return load_pil_img()
|
360 |
|
361 |
add_button.click(run_edit_text_wrapper,
|
362 |
+
inputs = [ mask_np_list,
|
363 |
+
mask_label_list,
|
364 |
+
image_loaded,num_tokens_global,
|
365 |
guidance_scale,
|
366 |
num_sampling_steps,
|
367 |
strength ,
|