Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,6 +68,7 @@ def generate_image(
|
|
| 68 |
|
| 69 |
# Set up the generator for reproducibility
|
| 70 |
generator = torch.Generator(device=device).manual_seed(seed)
|
|
|
|
| 71 |
prompt = prompt + " " + magic_prompt
|
| 72 |
print(f"Calling pipeline with prompt: '{prompt}'")
|
| 73 |
# if prompt_enhance:
|
|
@@ -75,7 +76,6 @@ def generate_image(
|
|
| 75 |
print(f"Actual Prompt: '{prompt}'")
|
| 76 |
print(f"Negative Prompt: '{negative_prompt}'")
|
| 77 |
print(f"Seed: {seed}, Size: {width}x{height}, Steps: {num_inference_steps}, Guidance: {guidance_scale}")
|
| 78 |
-
magic_prompt = "Ultra HD, 4K, cinematic composition"
|
| 79 |
|
| 80 |
# Generate the image
|
| 81 |
image = pipe(
|
|
|
|
| 68 |
|
| 69 |
# Set up the generator for reproducibility
|
| 70 |
generator = torch.Generator(device=device).manual_seed(seed)
|
| 71 |
+
magic_prompt = "Ultra HD, 4K, cinematic composition"
|
| 72 |
prompt = prompt + " " + magic_prompt
|
| 73 |
print(f"Calling pipeline with prompt: '{prompt}'")
|
| 74 |
# if prompt_enhance:
|
|
|
|
| 76 |
print(f"Actual Prompt: '{prompt}'")
|
| 77 |
print(f"Negative Prompt: '{negative_prompt}'")
|
| 78 |
print(f"Seed: {seed}, Size: {width}x{height}, Steps: {num_inference_steps}, Guidance: {guidance_scale}")
|
|
|
|
| 79 |
|
| 80 |
# Generate the image
|
| 81 |
image = pipe(
|