Eueuiaa commited on
Commit
9362b35
·
verified ·
1 Parent(s): 701d78c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py CHANGED
@@ -156,6 +156,31 @@ with gr.Blocks() as demo:
156
  gr.Markdown("### Vídeo Base Gerado")
157
  low_res_video_output = gr.Video(label="O resultado da Etapa 1 aparecerá aqui", interactive=False)
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  def update_custom_guidance_visibility(preset_choice):
160
  return gr.update(visible=(preset_choice == "Customizado"))
161
 
 
156
  gr.Markdown("### Vídeo Base Gerado")
157
  low_res_video_output = gr.Video(label="O resultado da Etapa 1 aparecerá aqui", interactive=False)
158
 
159
+ with gr.Group(visible=False) as post_prod_group:
160
+ gr.Markdown("## Etapa 2: Pós-Produção")
161
+
162
+ with gr.Tabs():
163
+ with gr.TabItem("🚀 Upscaler Textura (LTX)"):
164
+ with gr.Row():
165
+ with gr.Column(scale=1):
166
+ gr.Markdown("Reutiliza o prompt e CFG para refinar a textura.")
167
+ ltx_refine_btn = gr.Button("Aplicar Refinamento LTX", variant="primary")
168
+ with gr.Column(scale=1):
169
+ ltx_refined_video_output = gr.Video(label="Vídeo com Textura Refinada", interactive=False)
170
+
171
+ with gr.TabItem("✨ Upscaler SeedVR"):
172
+ with gr.Row():
173
+ with gr.Column(scale=1):
174
+ seedvr_seed = gr.Slider(minimum=0, maximum=999999, value=42, step=1, label="Seed")
175
+ seedvr_resolution = gr.Slider(minimum=720, maximum=1440, value=1072, step=8, label="Resolução Vertical")
176
+ seedvr_batch_size = gr.Slider(minimum=1, maximum=16, value=4, step=1, label="Batch Size por GPU")
177
+ seedvr_fps_output = gr.Number(label="FPS de Saída (0 = original)", value=0)
178
+ run_seedvr_button = gr.Button("Iniciar Upscaling SeedVR", variant="primary", interactive=(seedvr_inference_server is not None))
179
+ with gr.Column(scale=1):
180
+ seedvr_video_output = gr.Video(label="Vídeo com Upscale SeedVR", interactive=False)
181
+ seedvr_status_box = gr.Textbox(label="Status", value="Aguardando...", lines=3, interactive=False)
182
+
183
+
184
  def update_custom_guidance_visibility(preset_choice):
185
  return gr.update(visible=(preset_choice == "Customizado"))
186