Update app.py
Browse files
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
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 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(
|