wpbcpaz commited on
Commit
eaf9a5a
·
verified ·
1 Parent(s): eee2176

Update app.py

Browse files

Correção de bug para os cards do histórico apresentarem cores claras, independente dos temas

Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -511,6 +511,7 @@ def criar_alerta(tipo, mensagem):
511
  """
512
 
513
  def copiar_feedback(texto):
 
514
  if texto:
515
  return criar_alerta('success', '✅ Texto copiado!')
516
  return criar_alerta('warning', '⚠️ Nada para copiar')
@@ -1499,7 +1500,6 @@ with gr.Blocks(theme=custom_theme, title="Gerador de Posts e Chatbot (Completo)"
1499
  texto_output, imagem_output, status_output,
1500
  palavras_output, caracteres_output, hashtags_output,
1501
  analytics_display,
1502
- # texto_output, # Saída duplicada para o copiar_btn removida
1503
  editor_locked, texto_output, refinar_btn
1504
  ]
1505
 
@@ -1511,9 +1511,6 @@ with gr.Blocks(theme=custom_theme, title="Gerador de Posts e Chatbot (Completo)"
1511
  show_progress="full"
1512
  )
1513
 
1514
- # Botão copiar (sem _js, removido)
1515
- # O show_copy_button=True no texto_output cuidará disso.
1516
-
1517
  # Lista de outputs para o botão Limpar
1518
  limpar_outputs = [
1519
  # Aba Gerador
 
511
  """
512
 
513
  def copiar_feedback(texto):
514
+ # Esta função agora só retorna o alerta, o JS faz a cópia.
515
  if texto:
516
  return criar_alerta('success', '✅ Texto copiado!')
517
  return criar_alerta('warning', '⚠️ Nada para copiar')
 
1500
  texto_output, imagem_output, status_output,
1501
  palavras_output, caracteres_output, hashtags_output,
1502
  analytics_display,
 
1503
  editor_locked, texto_output, refinar_btn
1504
  ]
1505
 
 
1511
  show_progress="full"
1512
  )
1513
 
 
 
 
1514
  # Lista de outputs para o botão Limpar
1515
  limpar_outputs = [
1516
  # Aba Gerador