Download modules/utils/constants.py from smartdigitalnetworks/generativeexpressioneditor: direct link, hf CLI and curl.
- Browser
- Download file 589 Bytes
-
https://huggingface.co/spaces/smartdigitalnetworks/generativeexpressioneditor/resolve/e6d5b51dead8dbc08ccecd9ea13e7719df95b0cc/modules/utils/constants.py
- Command line
-
hf download hf://spaces/smartdigitalnetworks/generativeexpressioneditor@e6d5b51dead8dbc08ccecd9ea13e7719df95b0cc/modules/utils/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/smartdigitalnetworks/generativeexpressioneditor/resolve/e6d5b51dead8dbc08ccecd9ea13e7719df95b0cc/modules/utils/constants.py
589 Bytes
| from enum import Enum | |
| from gradio_i18n import Translate, gettext as _ | |
| class ModelType(Enum): | |
| HUMAN = _("Human") | |
| ANIMAL = _("Animal") | |
| class SamplePart(Enum): | |
| ONLY_EXPRESSION = _("OnlyExpression") | |
| ONLY_ROTATION = _("OnlyRotation") | |
| ONLY_MOUTH = _("OnlyMouth") | |
| ONLY_EYES = _("OnlyEyes") | |
| ALL = _("All") | |
| REPO_MARKDOWN = """ | |
| ## [AdvancedLivePortrait-WebUI](https://github.com/jhj0517/AdvancedLivePortrait-WebUI/tree/master) | |
| """ | |
| GRADIO_CSS = """ | |
| #md_project a { | |
| color: black; | |
| text-decoration: none; | |
| } | |
| #md_project a:hover { | |
| text-decoration: underline; | |
| } | |
| """ |