Spaces:
Running
on
Zero
Running
on
Zero
Plat
commited on
Commit
·
29cfd71
1
Parent(s):
4b08319
fix: add deps, update descriptions
Browse files- app.py +12 -10
- requirements.txt +3 -0
app.py
CHANGED
|
@@ -139,7 +139,8 @@ def demo():
|
|
| 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 |
""")
|
| 144 |
|
| 145 |
with gr.Row():
|
|
@@ -199,15 +200,16 @@ See full supported tags: [label2id.json](https://huggingface.co/{MODEL_REPO}/blo
|
|
| 199 |
show_label=True,
|
| 200 |
)
|
| 201 |
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
|
|
|
| 211 |
|
| 212 |
gr.on(
|
| 213 |
triggers=[generate_button.click, prompt.submit],
|
|
|
|
| 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 |
|
| 146 |
with gr.Row():
|
|
|
|
| 200 |
show_label=True,
|
| 201 |
)
|
| 202 |
|
| 203 |
+
gr.Examples(
|
| 204 |
+
examples=[
|
| 205 |
+
[
|
| 206 |
+
"general 1girl solo portrait looking_at_viewer blue_hair short_hair blush cat_ears open_mouth cat_ears animal_ears red_eyes white_background",
|
| 207 |
+
"retro_artstyle 1990s_(style) sketch",
|
| 208 |
+
]
|
| 209 |
+
],
|
| 210 |
+
inputs=[prompt, negative_prompt],
|
| 211 |
+
label="Examples",
|
| 212 |
+
)
|
| 213 |
|
| 214 |
gr.on(
|
| 215 |
triggers=[generate_button.click, prompt.submit],
|
requirements.txt
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
spaces
|
|
|
|
| 2 |
torch
|
|
|
|
| 3 |
transformers
|
| 4 |
huggingface-hub
|
|
|
|
|
|
| 1 |
spaces
|
| 2 |
+
accelerate
|
| 3 |
torch
|
| 4 |
+
numpy
|
| 5 |
transformers
|
| 6 |
huggingface-hub
|
| 7 |
+
pydantic
|