aifeifei798 commited on
Commit
d22b2b8
·
verified ·
1 Parent(s): 3752c4b

Update feifeilib/feifeifluxapi.py

Browse files
Files changed (1) hide show
  1. feifeilib/feifeifluxapi.py +1 -0
feifeilib/feifeifluxapi.py CHANGED
@@ -6,6 +6,7 @@ client.headers["x-use-cache"] = "0"
6
 
7
  def feifeifluxapi(prompt, height=1152, width=896, guidance_scale=3.5):
8
  # output is a PIL.Image object
 
9
  result = client.text_to_image(
10
  prompt=prompt,
11
  width=width,
 
6
 
7
  def feifeifluxapi(prompt, height=1152, width=896, guidance_scale=3.5):
8
  # output is a PIL.Image object
9
+ prompt = prompt.replace('\n', ' ')
10
  result = client.text_to_image(
11
  prompt=prompt,
12
  width=width,