aifeifei798 commited on
Commit
b3a5d68
·
verified ·
1 Parent(s): 01fb166

Upload 6 files

Browse files
feifeilib/feifeifluxapi.py CHANGED
@@ -5,7 +5,7 @@ from huggingface_hub import InferenceClient
5
  client = InferenceClient("black-forest-labs/FLUX.1-dev", token=os.getenv('HF_TOKEN'))
6
  client.headers["x-use-cache"] = "0"
7
 
8
- def feifeifluxapi(prompt, height=1152, width=896, guidance_scale=3.5, num_strength=0.35):
9
  image = client.text_to_image(
10
  prompt=prompt,
11
  height=height,
 
5
  client = InferenceClient("black-forest-labs/FLUX.1-dev", token=os.getenv('HF_TOKEN'))
6
  client.headers["x-use-cache"] = "0"
7
 
8
+ def feifeifluxapi(prompt, height=1152, width=896, guidance_scale=3.5):
9
  image = client.text_to_image(
10
  prompt=prompt,
11
  height=height,
feifeiui/feifeiui.py CHANGED
@@ -227,17 +227,10 @@ def create_ui():
227
  flux_button.click(
228
  fn=feifeifluxapi, # Function to run for this button
229
  inputs=[
230
- randomize_seed,
231
- flux_seed,
232
  flux_prompt,
233
- quality_select,
234
- sharpened_select,
235
- styles_Radio,
236
- FooocusExpansion_select,
237
  flux_height,
238
  flux_width,
239
- flux_guidancescale,
240
- num_strength
241
  ],
242
  outputs=[flux_result],
243
  )
 
227
  flux_button.click(
228
  fn=feifeifluxapi, # Function to run for this button
229
  inputs=[
 
 
230
  flux_prompt,
 
 
 
 
231
  flux_height,
232
  flux_width,
233
+ flux_guidancescale
 
234
  ],
235
  outputs=[flux_result],
236
  )