jhj0517 commited on
Commit ·
f878f1b
1
Parent(s): b345336
Add header & css constants
Browse filesFiles changed (2)
- app.py+4-1
- modules/utils/constants.pyAdded+13
4 unmodified lines567891011121314141516171822 unmodified lines41424344454647484 unmodified linesfrom modules.live_portrait.live_portrait_inferencer import LivePortraitInferencerfrom modules.utils.paths import *from modules.utils.helper import str2boolfrom modules.utils.constants import *
class App: def __init__(self, args=None): self.args = args self.app = gr.Blocks() self.app = gr.Blocks(css=GRADIO_CSS) self.i18n = Translate(I18N_YAML_PATH) self.inferencer = LivePortraitInferencer()
22 unmodified lines def launch(self): with self.app: with self.i18n: gr.Markdown(REPO_MARKDOWN, elem_id="md_project")
with gr.Row(): with gr.Column(): img_ref = gr.Image(label=_("Reference Image"))12345678910111213REPO_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;}"""app.py+4-1
modules/utils/constants.pyAdded+13