hassanelmghari commited on
Commit
87437f8
1 Parent(s): 4405d9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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.1-pro",
22
  width=1024,
23
  height=768,
24
- steps=1,
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.1.1-pro",
49
- description="Generate images using the FLUX.1.1-pro model via the Together API. You can provide your API key here"
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