Spaces:
Build error
Build error
Update
Browse files15 unmodified lines16171819202120 unmodified lines424344454647484950515252 unmodified lines10510610710810911011111211315 unmodified linesfrom model import Modeldef parse_args() -> argparse.Namespace:parser = argparse.ArgumentParser()20 unmodified linesmodel = Model(args.device)with gr.Blocks(theme=args.theme, css='style.css') as demo:gr.Markdown('''<h1 id="title">Text2Human</h1>This is an unofficial demo for <a href="https://github.com/yumingj/Text2Human">https://github.com/yumingj/Text2Human</a>.You can modify sample steps and seeds. By varying seeds, you can sample different human images under the same pose, shape description, and texture description. The larger the sample steps, the better quality of the generated images. (The default value of sample steps is 256 in the original repo.)</a>''')with gr.Row():with gr.Column():with gr.Row():52 unmodified lineswith gr.Row():generate_human_button = gr.Button('Generate Human')gr.Markdown('<center><img src="https://visitor-badge.glitch.me/badge?page_id=hysts.text2human" alt="visitor badge"/></center>')input_image.change(fn=model.process_pose_image,inputs=[input_image],15 unmodified lines1617181920212223242526272820 unmodified lines495051525354555652 unmodified lines10911011111211311411515 unmodified linesfrom model import ModelDESCRIPTION = '''# Text2HumanThis is an unofficial demo for <a href="https://github.com/yumingj/Text2Human">https://github.com/yumingj/Text2Human</a>.You can modify sample steps and seeds. By varying seeds, you can sample different human images under the same pose, shape description, and texture description. The larger the sample steps, the better quality of the generated images. (The default value of sample steps is 256 in the original repo.)'''FOOTER = '<img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.glitch.me/badge?page_id=hysts.text2human" />'def parse_args() -> argparse.Namespace:parser = argparse.ArgumentParser()20 unmodified linesmodel = Model(args.device)with gr.Blocks(theme=args.theme, css='style.css') as demo:gr.Markdown(DESCRIPTION)with gr.Row():with gr.Column():with gr.Row():52 unmodified lineswith gr.Row():generate_human_button = gr.Button('Generate Human')gr.Markdown(FOOTER)input_image.change(fn=model.process_pose_image,inputs=[input_image],
9 unmodified lines1011129 unmodified lines#result-image {height: 300px;}9 unmodified lines101112131415169 unmodified lines#result-image {height: 300px;}img#visitor-badge {display: block;margin: auto;}
app.py+9-7
style.css+4