Plat commited on
Commit
0a8b9fa
Β·
1 Parent(s): 9b34381

chore: add japanese info

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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](https://huggingface.co/{MODEL_REPO}/blob/main/{LABEL2ID_PATH}).
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 link above for full supported tags.",
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",