Spaces:
Sleeping
Sleeping
Update theme.py
Browse files
theme.py
CHANGED
@@ -9,9 +9,10 @@ os.environ["REPLICATE_API_TOKEN"] = os.getenv("REPLICATE_API_TOKEN")
|
|
9 |
def create_flux_request(prompt_for_image_generation):
|
10 |
payload = {
|
11 |
"prompt": prompt_for_image_generation,
|
12 |
-
"guidance": 3
|
13 |
"num_outputs": 1,
|
14 |
-
"aspect_ratio": "3:4"
|
|
|
15 |
}
|
16 |
output = replicate.run(
|
17 |
"black-forest-labs/flux-dev",
|
|
|
9 |
def create_flux_request(prompt_for_image_generation):
|
10 |
payload = {
|
11 |
"prompt": prompt_for_image_generation,
|
12 |
+
"guidance": 3,
|
13 |
"num_outputs": 1,
|
14 |
+
"aspect_ratio": "3:4",
|
15 |
+
"disable_safety_checker": False
|
16 |
}
|
17 |
output = replicate.run(
|
18 |
"black-forest-labs/flux-dev",
|