Skip to content

Commit

Permalink
Allow lists in theme params
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed May 1, 2024
1 parent 3cb8012 commit 8453f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chart/web-app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pydantic import Field, HttpUrl
from pydantic_settings import BaseSettings, SettingsConfigDict

from typing import Optional
from typing import Optional, Union, List


def get_k8s_namespace():
Expand Down Expand Up @@ -52,7 +52,7 @@ class AppSettings(BaseSettings):
# Variables explicitly passed to gradio.theme.Default()
# For example:
# {"primary_hue": "red"}
theme_params: dict[str, str] = Field(default_factory=dict)
theme_params: dict[str, Union[str, List[str]]] = Field(default_factory=dict)
# Overrides for theme.body_background_fill property
theme_background_colour: Optional[str] = Field(default=None)
# Custom page title colour override passed as CSS
Expand Down

0 comments on commit 8453f09

Please sign in to comment.