From 5efee7a8555efe5e7ba08638089768e32ba74680 Mon Sep 17 00:00:00 2001 From: Ronan Date: Tue, 17 Dec 2024 15:06:59 +0100 Subject: [PATCH] fix style --- app/callbacks/display_callbacks.py | 4 ++-- app/pages/homepage.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/callbacks/display_callbacks.py b/app/callbacks/display_callbacks.py index 18f231a..45febdd 100644 --- a/app/callbacks/display_callbacks.py +++ b/app/callbacks/display_callbacks.py @@ -6,10 +6,11 @@ import ast import json from typing import List + import dash -from dash import html import logging_config import pandas as pd +from dash import html from dash.dependencies import ALL, Input, Output, State from dash.exceptions import PreventUpdate from main import app @@ -295,7 +296,6 @@ def update_image_and_bbox(slider_value, detection_data, media_url, wildfire_list images.append(media_url[str(detection["id"])]) boxes = detection_data["processed_loc"].tolist() - if slider_value < len(images): img_src = images[slider_value] images_bbox_list = boxes[slider_value] diff --git a/app/pages/homepage.py b/app/pages/homepage.py index 679448e..afce801 100644 --- a/app/pages/homepage.py +++ b/app/pages/homepage.py @@ -13,6 +13,7 @@ app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP]) app.css.append_css({"external_url": "/assets/style.css"}) + def homepage_layout(client_token, lang="fr"): translate = { "fr": {