Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
d3f9719
1
Parent(s):
6e97af5
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
20 |
MAX_IMAGE_SIZE = 1024
|
21 |
|
22 |
|
23 |
-
@spaces.GPU(duration=
|
24 |
def inference(
|
25 |
prompt: str,
|
26 |
seed: int,
|
@@ -68,14 +68,16 @@ with gr.Blocks(css=css) as demo:
|
|
68 |
with gr.Column(elem_id="col-container"):
|
69 |
gr.Markdown("# FLUX.1 Studio Ghibli LoRA")
|
70 |
gr.Markdown(
|
71 |
-
"
|
|
|
72 |
" with [alvarobartt/ghibli-characters](https://huggingface.co/datasets/alvarobartt/ghibli-characters)."
|
73 |
)
|
74 |
|
75 |
with gr.Accordion("How to generate nice prompts?", open=False):
|
76 |
gr.Markdown(
|
77 |
-
"What worked best for me to generate high-quality prompts
|
78 |
-
" [Claude 3 Haiku](https://claude.ai)
|
|
|
79 |
" expert prompt writer for diffusion text to image models, and you've been provided"
|
80 |
" the following prompt template:\n\n\"Ghibli style [character description] with"
|
81 |
" [distinctive features], [action or pose], [environment or background],"
|
|
|
20 |
MAX_IMAGE_SIZE = 1024
|
21 |
|
22 |
|
23 |
+
@spaces.GPU(duration=80)
|
24 |
def inference(
|
25 |
prompt: str,
|
26 |
seed: int,
|
|
|
68 |
with gr.Column(elem_id="col-container"):
|
69 |
gr.Markdown("# FLUX.1 Studio Ghibli LoRA")
|
70 |
gr.Markdown(
|
71 |
+
"[alvarobartt/ghibli-characters-flux-lora](https://huggingface.co/alvarobartt/ghibli-characters-flux-lora)"
|
72 |
+
" is a LoRA fine-tune of [FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev)"
|
73 |
" with [alvarobartt/ghibli-characters](https://huggingface.co/datasets/alvarobartt/ghibli-characters)."
|
74 |
)
|
75 |
|
76 |
with gr.Accordion("How to generate nice prompts?", open=False):
|
77 |
gr.Markdown(
|
78 |
+
"What worked best for me to generate high-quality prompts of well-known characters,"
|
79 |
+
" was to prompt either [Claude 3 Haiku](https://claude.ai), [GPT4-o](https://chatgpt.com/),"
|
80 |
+
" or [Perplexity](https://www.perplexity.ai/) with:\n\nYou are an"
|
81 |
" expert prompt writer for diffusion text to image models, and you've been provided"
|
82 |
" the following prompt template:\n\n\"Ghibli style [character description] with"
|
83 |
" [distinctive features], [action or pose], [environment or background],"
|