Spaces:
Running
on
Zero
Running
on
Zero
Plat
commited on
Commit
Β·
0a8b9fa
1
Parent(s):
9b34381
chore: add japanese info
Browse files
app.py
CHANGED
|
@@ -133,13 +133,16 @@ def generate_images(
|
|
| 133 |
return images
|
| 134 |
|
| 135 |
|
|
|
|
|
|
|
|
|
|
| 136 |
def demo():
|
| 137 |
with gr.Blocks() as ui:
|
| 138 |
gr.Markdown(f"""
|
| 139 |
# JiT-AnimeFace Demo
|
| 140 |
Pixel-space x-prediction flow-matching model for anime face generation, trained from scratch.
|
| 141 |
|
| 142 |
-
- See full supported tags: [label2id.json](
|
| 143 |
- Current model: [{MODEL_PATH}](https://huggingface.co/{MODEL_REPO}/blob/main/{MODEL_PATH})
|
| 144 |
""")
|
| 145 |
|
|
@@ -147,12 +150,13 @@ Pixel-space x-prediction flow-matching model for anime face generation, trained
|
|
| 147 |
with gr.Column():
|
| 148 |
prompt = gr.TextArea(
|
| 149 |
label="Prompt",
|
| 150 |
-
info="Space-separated tags. Not all of danbooru tags are supported. See the
|
| 151 |
value="general 1girl solo portrait looking_at_viewer blue_hair short_hair blush open_mouth cat_ears animal_ears red_eyes white_background",
|
| 152 |
placeholder="e.g.: general 1girl solo portrait looking_at_viewer",
|
| 153 |
)
|
| 154 |
negative_prompt = gr.TextArea(
|
| 155 |
label="Negative Prompt",
|
|
|
|
| 156 |
value="retro_artstyle 1990s_(style) sketch",
|
| 157 |
lines=2,
|
| 158 |
placeholder="e.g.: retro_artstyle 1990s_(style) sketch",
|
|
|
|
| 133 |
return images
|
| 134 |
|
| 135 |
|
| 136 |
+
LABEL2ID_URL = f"https://huggingface.co/{MODEL_REPO}/blob/main/{LABEL2ID_PATH}"
|
| 137 |
+
|
| 138 |
+
|
| 139 |
def demo():
|
| 140 |
with gr.Blocks() as ui:
|
| 141 |
gr.Markdown(f"""
|
| 142 |
# JiT-AnimeFace Demo
|
| 143 |
Pixel-space x-prediction flow-matching model for anime face generation, trained from scratch.
|
| 144 |
|
| 145 |
+
- See full supported tags: [label2id.json]({LABEL2ID_URL}). ε―ΎεΏγγ¦γγγΏγ°δΈθ¦§γ― [γγ‘γ]({LABEL2ID_URL}) γγη’Ίθͺγ§γγΎγγγγγ«θΌγ£γ¦γγͺγγΏγ°γ―εεΏγγΎγγγ
|
| 146 |
- Current model: [{MODEL_PATH}](https://huggingface.co/{MODEL_REPO}/blob/main/{MODEL_PATH})
|
| 147 |
""")
|
| 148 |
|
|
|
|
| 150 |
with gr.Column():
|
| 151 |
prompt = gr.TextArea(
|
| 152 |
label="Prompt",
|
| 153 |
+
info=f"Space-separated tags. Not all of danbooru tags are supported. See [the full supported tags]({LABEL2ID_URL}). γΉγγΌγΉγ§εΊεγ£γ¦γγ γγγγ«γ³γεΊεγγ―ε―ΎεΏγγ¦γΎγγγ",
|
| 154 |
value="general 1girl solo portrait looking_at_viewer blue_hair short_hair blush open_mouth cat_ears animal_ears red_eyes white_background",
|
| 155 |
placeholder="e.g.: general 1girl solo portrait looking_at_viewer",
|
| 156 |
)
|
| 157 |
negative_prompt = gr.TextArea(
|
| 158 |
label="Negative Prompt",
|
| 159 |
+
info="Space-separated negative tags to avoid in generation. γΉγγΌγΉγ§εΊεγ£γ¦γγ γγγγ«γ³γεΊεγγ―ε―ΎεΏγγ¦γΎγγγ",
|
| 160 |
value="retro_artstyle 1990s_(style) sketch",
|
| 161 |
lines=2,
|
| 162 |
placeholder="e.g.: retro_artstyle 1990s_(style) sketch",
|