aifeifei798 commited on
Commit
dc6f4e4
·
verified ·
1 Parent(s): 168dff0

Update feifeilib/feifeifluxapi.py

Browse files
Files changed (1) hide show
  1. feifeilib/feifeifluxapi.py +2 -2
feifeilib/feifeifluxapi.py CHANGED
@@ -3,9 +3,9 @@ from huggingface_hub import InferenceClient
3
  client = InferenceClient("black-forest-labs/FLUX.1-dev", token=os.getenv('HF_TOKEN'))
4
  client.headers["x-use-cache"] = "0"
5
 
6
- def feifeifluxapi(protmpt="the photo is a jpop girl",height=1152,width=896,guidance_scale=3.5):
7
  image = client.text_to_image(
8
- protmpt=protmpt,
9
  height=height,
10
  width=width,
11
  guidance_scale=guidance_scale
 
3
  client = InferenceClient("black-forest-labs/FLUX.1-dev", token=os.getenv('HF_TOKEN'))
4
  client.headers["x-use-cache"] = "0"
5
 
6
+ def feifeifluxapi(prompt="the photo is a jpop girl",height=1152,width=896,guidance_scale=3.5):
7
  image = client.text_to_image(
8
+ prompt=prompt,
9
  height=height,
10
  width=width,
11
  guidance_scale=guidance_scale