Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -358,7 +358,11 @@ def apply_prompt(meta_data, new_prompt):
|
|
358 |
pipe, _, scheduler = load_pipeline()
|
359 |
pipe.to("cuda")
|
360 |
|
361 |
-
caption, real_image_initial_latents, inversed_latents,
|
|
|
|
|
|
|
|
|
362 |
negative_prompt = ""
|
363 |
|
364 |
inference_steps = len(inversed_latents)
|
|
|
358 |
pipe, _, scheduler = load_pipeline()
|
359 |
pipe.to("cuda")
|
360 |
|
361 |
+
caption, real_image_initial_latents, inversed_latents, saved_weights = meta_data
|
362 |
+
# overwrite the global so your processor can see it
|
363 |
+
global weights
|
364 |
+
weights = saved_weights
|
365 |
+
|
366 |
negative_prompt = ""
|
367 |
|
368 |
inference_steps = len(inversed_latents)
|