Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
2 |
from typing import Iterable
|
3 |
|
4 |
import gradio as gr
|
5 |
-
from gradio.themes.base import Base
|
6 |
from gradio.themes.utils import colors, fonts, sizes
|
7 |
|
8 |
import torch
|
@@ -24,7 +24,7 @@ def adjust_brightness(rgb_color: tuple[int, int, int], factor: float) -> tuple[i
|
|
24 |
new_rgb = colorsys.hsv_to_rgb(hsv_color[0], hsv_color[1], new_v)
|
25 |
return tuple(int(v * 255) for v in new_rgb)
|
26 |
|
27 |
-
class MPGPoster(
|
28 |
@staticmethod
|
29 |
def create_color_shades(hex_color: str, brightness_control: float = 1.0) -> colors.Color:
|
30 |
base_rgb = hex_to_rgb(hex_color)
|
|
|
2 |
from typing import Iterable
|
3 |
|
4 |
import gradio as gr
|
5 |
+
from gradio.themes.base import Base, Soft, Monochrome, Default
|
6 |
from gradio.themes.utils import colors, fonts, sizes
|
7 |
|
8 |
import torch
|
|
|
24 |
new_rgb = colorsys.hsv_to_rgb(hsv_color[0], hsv_color[1], new_v)
|
25 |
return tuple(int(v * 255) for v in new_rgb)
|
26 |
|
27 |
+
class MPGPoster(Default):
|
28 |
@staticmethod
|
29 |
def create_color_shades(hex_color: str, brightness_control: float = 1.0) -> colors.Color:
|
30 |
base_rgb = hex_to_rgb(hex_color)
|