Spaces:
Running
on
Zero
Running
on
Zero
Update feifeilib/feifeifluxapi.py
Browse files
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,
|