Spaces:
Running
on
Zero
Running
on
Zero
aifeifei798
commited on
Commit
•
3b986ef
1
Parent(s):
d241648
Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,6 @@ def infer(prompt, quality_select, styles_Radio, FooocusExpansion_select, seed=42
|
|
59 |
|
60 |
generator = torch.Generator().manual_seed(seed)
|
61 |
if prompt:
|
62 |
-
if randomize_seed:
|
63 |
-
seed = random.randint(0, MAX_SEED)
|
64 |
if quality_select:
|
65 |
prompt += ", masterpiece, best quality, very aesthetic, absurdres"
|
66 |
if styles_Radio:
|
@@ -73,7 +71,8 @@ def infer(prompt, quality_select, styles_Radio, FooocusExpansion_select, seed=42
|
|
73 |
else:
|
74 |
prompt = "the photo is kpop bikini 1girl"
|
75 |
image = pipe(
|
76 |
-
prompt =
|
|
|
77 |
width = width,
|
78 |
height = height,
|
79 |
num_inference_steps = num_inference_steps,
|
|
|
59 |
|
60 |
generator = torch.Generator().manual_seed(seed)
|
61 |
if prompt:
|
|
|
|
|
62 |
if quality_select:
|
63 |
prompt += ", masterpiece, best quality, very aesthetic, absurdres"
|
64 |
if styles_Radio:
|
|
|
71 |
else:
|
72 |
prompt = "the photo is kpop bikini 1girl"
|
73 |
image = pipe(
|
74 |
+
prompt = "",
|
75 |
+
prompt_2 = prompt,
|
76 |
width = width,
|
77 |
height = height,
|
78 |
num_inference_steps = num_inference_steps,
|