Commit
·
25fe7da
1
Parent(s):
a91c60a
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,10 @@ def infer(prompt, api_key):
|
|
24 |
)
|
25 |
answers = stability_api.generate(
|
26 |
prompt=prompt,
|
27 |
-
seed=992446758, # If a seed is provided, the resulting generated image will be deterministic.
|
28 |
# What this means is that as long as all generation parameters remain the same, you can always recall the same image simply by generating it again.
|
29 |
# Note: This isn't quite the case for Clip Guided generations, which we'll tackle in a future example notebook.
|
30 |
-
steps=
|
31 |
cfg_scale=8.0, # Influences how strongly your generation is guided to match your prompt.
|
32 |
# Setting this value higher increases the strength in which it tries to match your prompt.
|
33 |
# Defaults to 7.0 if not specified.
|
|
|
24 |
)
|
25 |
answers = stability_api.generate(
|
26 |
prompt=prompt,
|
27 |
+
#seed=992446758, # If a seed is provided, the resulting generated image will be deterministic.
|
28 |
# What this means is that as long as all generation parameters remain the same, you can always recall the same image simply by generating it again.
|
29 |
# Note: This isn't quite the case for Clip Guided generations, which we'll tackle in a future example notebook.
|
30 |
+
steps=50, # Amount of inference steps performed on image generation. Defaults to 30.
|
31 |
cfg_scale=8.0, # Influences how strongly your generation is guided to match your prompt.
|
32 |
# Setting this value higher increases the strength in which it tries to match your prompt.
|
33 |
# Defaults to 7.0 if not specified.
|