Spaces:
Running
on
Zero
Running
on
Zero
Plat
commited on
Commit
Β·
c94981f
1
Parent(s):
cdb5002
chore: update default prompt
Browse files
app.py
CHANGED
|
@@ -95,7 +95,7 @@ def load_model(
|
|
| 95 |
return model, label2id
|
| 96 |
|
| 97 |
|
| 98 |
-
@spaces.GPU(duration=
|
| 99 |
def generate_images(
|
| 100 |
prompt: str,
|
| 101 |
negative_prompt: str,
|
|
@@ -154,7 +154,7 @@ Pixel-space x-prediction flow-matching 90M parameter model for anime face genera
|
|
| 154 |
prompt = gr.TextArea(
|
| 155 |
label="Prompt",
|
| 156 |
info=f"Space-separated tags. Not all of danbooru tags are supported. See [the full supported tags]({LABEL2ID_URL}). γΉγγΌγΉγ§εΊεγ£γ¦γγ γγγγ«γ³γεΊεγγ―ε―ΎεΏγγ¦γΎγγγ",
|
| 157 |
-
value="general 1girl solo portrait looking_at_viewer
|
| 158 |
placeholder="e.g.: general 1girl solo portrait looking_at_viewer",
|
| 159 |
)
|
| 160 |
negative_prompt = gr.TextArea(
|
|
@@ -213,6 +213,10 @@ Pixel-space x-prediction flow-matching 90M parameter model for anime face genera
|
|
| 213 |
|
| 214 |
gr.Examples(
|
| 215 |
examples=[
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
[
|
| 217 |
"general 1girl solo portrait looking_at_viewer blue_hair short_hair blush open_mouth cat_ears animal_ears red_eyes white_background",
|
| 218 |
"retro_artstyle 1990s_(style) sketch",
|
|
|
|
| 95 |
return model, label2id
|
| 96 |
|
| 97 |
|
| 98 |
+
@spaces.GPU(duration=6)
|
| 99 |
def generate_images(
|
| 100 |
prompt: str,
|
| 101 |
negative_prompt: str,
|
|
|
|
| 154 |
prompt = gr.TextArea(
|
| 155 |
label="Prompt",
|
| 156 |
info=f"Space-separated tags. Not all of danbooru tags are supported. See [the full supported tags]({LABEL2ID_URL}). γΉγγΌγΉγ§εΊεγ£γ¦γγ γγγγ«γ³γεΊεγγ―ε―ΎεΏγγ¦γΎγγγ",
|
| 157 |
+
value="general 1girl solo portrait looking_at_viewer",
|
| 158 |
placeholder="e.g.: general 1girl solo portrait looking_at_viewer",
|
| 159 |
)
|
| 160 |
negative_prompt = gr.TextArea(
|
|
|
|
| 213 |
|
| 214 |
gr.Examples(
|
| 215 |
examples=[
|
| 216 |
+
[
|
| 217 |
+
"general 1girl solo portrait looking_at_viewer",
|
| 218 |
+
"retro_artstyle 1990s_(style) sketch",
|
| 219 |
+
],
|
| 220 |
[
|
| 221 |
"general 1girl solo portrait looking_at_viewer blue_hair short_hair blush open_mouth cat_ears animal_ears red_eyes white_background",
|
| 222 |
"retro_artstyle 1990s_(style) sketch",
|