leonett commited on
Commit
0a29f26
·
verified ·
1 Parent(s): 6695c83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -202,15 +202,12 @@ def procesar_imagen(archivo_imagen):
202
  logger.error(f"Error en procesamiento: {str(e)}")
203
  return f"Error: {str(e)}", f"Error al procesar la imagen: {str(e)}"
204
 
205
- # 🎨 Tema oscuro moderno para Gradio v4+
206
- theme = gr.themes.Base().set(
207
- body_background_fill_dark="#121212",
208
- block_background_fill_dark="#1e1e1e",
209
- input_background_fill_dark="#2d2d2d",
210
- button_primary_background_fill_dark="#0066cc",
211
- button_secondary_background_fill_dark="#333333",
212
- text_color_dark="#ffffff",
213
- border_color_primary_dark="#444444"
214
  )
215
 
216
  # 🖥️ Interfaz Gradio
@@ -248,6 +245,9 @@ with gr.Blocks(title="Análisis Forense de Imágenes con ELA", theme=theme) as d
248
  outputs=analysis_text
249
  )
250
 
 
 
 
251
  # ▶️ Ejecución
252
  if __name__ == "__main__":
253
  demo.launch(
 
202
  logger.error(f"Error en procesamiento: {str(e)}")
203
  return f"Error: {str(e)}", f"Error al procesar la imagen: {str(e)}"
204
 
205
+ # 🎨 Tema moderno y compatible (¡sin errores!)
206
+ # Soft ya incluye modo oscuro automático y es visualmente agradable
207
+ theme = gr.themes.Soft(
208
+ primary_hue="blue",
209
+ secondary_hue="slate",
210
+ neutral_hue="stone",
 
 
 
211
  )
212
 
213
  # 🖥️ Interfaz Gradio
 
245
  outputs=analysis_text
246
  )
247
 
248
+ # 👇👇👇 AÑADIDO: Línea de crédito solicitada
249
+ gr.Markdown("Desarrollado por José R. Leonett para el Grupo de Peritos Forenses Digitales de Guatemala - [www.forensedigital.gt](https://www.forensedigital.gt)")
250
+
251
  # ▶️ Ejecución
252
  if __name__ == "__main__":
253
  demo.launch(