Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -149,21 +149,17 @@ def generate_video_with_example(
|
|
149 |
|
150 |
|
151 |
with gr.Blocks() as demo:
|
152 |
-
gr.Markdown('''#
|
153 |
-
Implementation of [Normalized Attention Guidance](https://chendaryen.github.io/NAG.github.io/).
|
154 |
-
|
155 |
-
[CausVid](https://github.com/tianweiy/CausVid) is a distilled version of Wan2.1 to run faster in just 4-8 steps, [extracted as LoRA by Kijai](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan21_CausVid_14B_T2V_lora_rank32.safetensors).
|
156 |
-
''')
|
157 |
|
158 |
with gr.Row():
|
159 |
with gr.Column():
|
160 |
prompt = gr.Textbox(
|
161 |
-
label="
|
162 |
max_lines=3,
|
163 |
-
placeholder="
|
164 |
)
|
165 |
nag_negative_prompt = gr.Textbox(
|
166 |
-
label="Negative Prompt
|
167 |
value=DEFAULT_NAG_NEGATIVE_PROMPT,
|
168 |
max_lines=3,
|
169 |
)
|
@@ -173,7 +169,7 @@ with gr.Blocks() as demo:
|
|
173 |
info="If unchecked, only sample with NAG will be generated.", value=True,
|
174 |
)
|
175 |
|
176 |
-
with gr.Accordion("
|
177 |
steps_slider = gr.Slider(minimum=1, maximum=8, step=1, value=DEFAULT_STEPS, label="Inference Steps")
|
178 |
duration_seconds_input = gr.Slider(
|
179 |
minimum=1, maximum=5, step=1, value=DEFAULT_DURATION_SECONDS,
|
@@ -189,10 +185,10 @@ with gr.Blocks() as demo:
|
|
189 |
value=DEFAULT_W_SLIDER_VALUE,
|
190 |
label=f"Output Width (multiple of {MOD_VALUE})")
|
191 |
|
192 |
-
generate_button = gr.Button("
|
193 |
with gr.Column():
|
194 |
-
nag_video_output = gr.Video(label="
|
195 |
-
baseline_video_output = gr.Video(label="
|
196 |
|
197 |
gr.Examples(
|
198 |
examples=examples,
|
|
|
149 |
|
150 |
|
151 |
with gr.Blocks() as demo:
|
152 |
+
gr.Markdown('''# Видео-генератор на GPT-Chatbot.ru''')
|
|
|
|
|
|
|
|
|
153 |
|
154 |
with gr.Row():
|
155 |
with gr.Column():
|
156 |
prompt = gr.Textbox(
|
157 |
+
label="Запрос",
|
158 |
max_lines=3,
|
159 |
+
placeholder="Введите ваш запрос",
|
160 |
)
|
161 |
nag_negative_prompt = gr.Textbox(
|
162 |
+
label="Negative Prompt",
|
163 |
value=DEFAULT_NAG_NEGATIVE_PROMPT,
|
164 |
max_lines=3,
|
165 |
)
|
|
|
169 |
info="If unchecked, only sample with NAG will be generated.", value=True,
|
170 |
)
|
171 |
|
172 |
+
with gr.Accordion("Настройки", open=False):
|
173 |
steps_slider = gr.Slider(minimum=1, maximum=8, step=1, value=DEFAULT_STEPS, label="Inference Steps")
|
174 |
duration_seconds_input = gr.Slider(
|
175 |
minimum=1, maximum=5, step=1, value=DEFAULT_DURATION_SECONDS,
|
|
|
185 |
value=DEFAULT_W_SLIDER_VALUE,
|
186 |
label=f"Output Width (multiple of {MOD_VALUE})")
|
187 |
|
188 |
+
generate_button = gr.Button("Сгенерировать видео", variant="primary")
|
189 |
with gr.Column():
|
190 |
+
nag_video_output = gr.Video(label="Вариант 1", autoplay=True, interactive=False)
|
191 |
+
baseline_video_output = gr.Video(label="Вариант 2", autoplay=True, interactive=False)
|
192 |
|
193 |
gr.Examples(
|
194 |
examples=examples,
|