Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,10 @@ def generate_image(api_key, prompt):
|
|
| 18 |
|
| 19 |
response = client.images.generate(
|
| 20 |
prompt=prompt,
|
| 21 |
-
model="black-forest-labs/FLUX.1
|
| 22 |
width=1024,
|
| 23 |
height=768,
|
| 24 |
-
steps=
|
| 25 |
n=1,
|
| 26 |
response_format="b64_json"
|
| 27 |
)
|
|
@@ -45,8 +45,8 @@ iface = gr.Interface(
|
|
| 45 |
gr.Image(label="Generated Image"),
|
| 46 |
gr.Textbox(label="Status")
|
| 47 |
],
|
| 48 |
-
title="Image Generation with FLUX
|
| 49 |
-
description="Generate images using the FLUX
|
| 50 |
)
|
| 51 |
|
| 52 |
# Launch the interface
|
|
|
|
| 18 |
|
| 19 |
response = client.images.generate(
|
| 20 |
prompt=prompt,
|
| 21 |
+
model="black-forest-labs/FLUX.1-schnell-Free",
|
| 22 |
width=1024,
|
| 23 |
height=768,
|
| 24 |
+
steps=4,
|
| 25 |
n=1,
|
| 26 |
response_format="b64_json"
|
| 27 |
)
|
|
|
|
| 45 |
gr.Image(label="Generated Image"),
|
| 46 |
gr.Textbox(label="Status")
|
| 47 |
],
|
| 48 |
+
title="Image Generation with FLUX Schnell",
|
| 49 |
+
description="Generate images using the FLUX Schnell model via the Together API. You can provide your API key here – it's free until the end of the year!"
|
| 50 |
)
|
| 51 |
|
| 52 |
# Launch the interface
|