fffiloni commited on
Commit
c4d0858
·
verified ·
1 Parent(s): 5a07e0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -2
app.py CHANGED
@@ -64,6 +64,7 @@ def generate_video(
64
  num_steps: int,
65
  fps: int,
66
  quality: int,
 
67
  ):
68
  if pil_image is None:
69
  raise gr.Error("Please upload a face image first!")
@@ -98,6 +99,26 @@ with gr.Blocks(theme=gr.themes.Soft(), css="footer {display: none !important}")
98
  # Stand-In IP2V
99
  """
100
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  with gr.Row():
103
  with gr.Column(scale=1):
@@ -113,7 +134,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css="footer {display: none !important}")
113
  input_prompt = gr.Textbox(
114
  label="Prompt",
115
  lines=4,
116
- value="一位男性舒适地坐在书桌前,正对着镜头,仿佛在与屏幕前的亲友对话。他的眼神专注而温柔,嘴角带着自然的笑意。背景是他精心布置的个人空间,墙上贴着照片和一张世界地图,传达出一种亲密而现代的沟通感。",
117
  placeholder="Please enter a detailed description of the scene, character actions, expressions, etc...",
118
  )
119
 
@@ -130,7 +151,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css="footer {display: none !important}")
130
  input_negative_prompt = gr.Textbox(
131
  label="Negative Prompt",
132
  lines=3,
133
- value="色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",
134
  )
135
  input_steps = gr.Slider(
136
  label="Inference Steps",
 
64
  num_steps: int,
65
  fps: int,
66
  quality: int,
67
+ progress=gr.Progress(track_tqdm=True)
68
  ):
69
  if pil_image is None:
70
  raise gr.Error("Please upload a face image first!")
 
99
  # Stand-In IP2V
100
  """
101
  )
102
+ gr.Markdown("A Lightweight and Plug-and-Play Identity Control for Video Generation")
103
+ gr.HTML("""
104
+ <div style="display:flex;column-gap:4px;">
105
+ <a href="https://github.com/WeChatCV/Stand-In">
106
+ <img src='https://img.shields.io/badge/GitHub-Repo-blue'>
107
+ </a>
108
+ <a href="https://stand-in-video.github.io/">
109
+ <img src='https://img.shields.io/badge/Project-Page-green'>
110
+ </a>
111
+ <a href="https://arxiv.org/abs/2508.07901">
112
+ <img src='https://img.shields.io/badge/ArXiv-Paper-red'>
113
+ </a>
114
+ <a href="https://huggingface.co/spaces/fffiloni/Stand-In?duplicate=true">
115
+ <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space">
116
+ </a>
117
+ <a href="https://huggingface.co/fffiloni">
118
+ <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
119
+ </a>
120
+ </div>
121
+ """)
122
 
123
  with gr.Row():
124
  with gr.Column(scale=1):
 
134
  input_prompt = gr.Textbox(
135
  label="Prompt",
136
  lines=4,
137
+ value="A man sits comfortably at his desk, facing the camera, as if conversing with a friend or family member in front of a screen. His eyes are focused yet gentle, and a natural smile plays on his lips. The background is his meticulously decorated personal space, with photos and a world map on the wall, conveying a sense of intimacy and modern communication.",
138
  placeholder="Please enter a detailed description of the scene, character actions, expressions, etc...",
139
  )
140
 
 
151
  input_negative_prompt = gr.Textbox(
152
  label="Negative Prompt",
153
  lines=3,
154
+ value="Vibrant colors, overexposure, static, blurred details, subtitles, style, artwork, painting, still image, overall grayness, worst quality, low quality, JPEG compression residue, ugly, mutilated, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still image, cluttered background, three legs, crowded background, walking backwards",
155
  )
156
  input_steps = gr.Slider(
157
  label="Inference Steps",