pcdoido2 commited on
Commit
2ff413a
verified
1 Parent(s): 32ad84b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -14
app.py CHANGED
@@ -157,20 +157,30 @@ if pagina == "馃幀 Gerador de V铆deo":
157
  velocidade_cortes_n = round(random.uniform(0.8, 1.5), 2)
158
  velocidade_final_n = round(random.uniform(0.8, 1.3), 2)
159
 
160
- ativar_blur_fundo_n = random.choice([True, False])
161
- ativar_sepia_n = random.choice([True, False])
162
- ativar_granulado_n = random.choice([True, False])
163
- ativar_pb_n = random.choice([True, False])
164
- ativar_vignette_n = random.choice([True, False])
165
-
166
- ativar_brilho_n = random.choice([True, False])
167
- ativar_contraste_n = random.choice([True, False])
168
- ativar_colorboost_n = random.choice([True, False])
169
- ativar_azul_n = random.choice([True, False])
170
- ativar_quente_n = random.choice([True, False])
171
- ativar_desaturar_n = random.choice([True, False])
172
- ativar_vhs_n = random.choice([True, False])
173
-
 
 
 
 
 
 
 
 
 
 
174
  ativar_espelhar_n = random.choice([True, False])
175
 
176
  # Corrigido: s贸 aleatoriza borda se ativada
 
157
  velocidade_cortes_n = round(random.uniform(0.8, 1.5), 2)
158
  velocidade_final_n = round(random.uniform(0.8, 1.3), 2)
159
 
160
+ # ----- FILTROS -----
161
+ todos_filtros = [
162
+ "blur_fundo", "sepia", "granulado", "pb", "vignette",
163
+ "brilho", "contraste", "colorboost", "azul", "quente", "desaturar", "vhs"
164
+ ]
165
+
166
+ qtd_filtros = random.randint(1, 4)
167
+ filtros_escolhidos = random.sample(todos_filtros, qtd_filtros)
168
+
169
+ ativar_blur_fundo_n = "blur_fundo" in filtros_escolhidos
170
+ ativar_sepia_n = "sepia" in filtros_escolhidos
171
+ ativar_granulado_n = "granulado" in filtros_escolhidos
172
+ ativar_pb_n = "pb" in filtros_escolhidos
173
+ ativar_vignette_n = "vignette" in filtros_escolhidos
174
+
175
+ ativar_brilho_n = "brilho" in filtros_escolhidos
176
+ ativar_contraste_n = "contraste" in filtros_escolhidos
177
+ ativar_colorboost_n = "colorboost" in filtros_escolhidos
178
+ ativar_azul_n = "azul" in filtros_escolhidos
179
+ ativar_quente_n = "quente" in filtros_escolhidos
180
+ ativar_desaturar_n = "desaturar" in filtros_escolhidos
181
+ ativar_vhs_n = "vhs" in filtros_escolhidos
182
+
183
+ # ----- OUTROS EFEITOS -----
184
  ativar_espelhar_n = random.choice([True, False])
185
 
186
  # Corrigido: s贸 aleatoriza borda se ativada