Update app.py
Browse files
app.py
CHANGED
@@ -11,16 +11,6 @@ import os
|
|
11 |
import colorsys
|
12 |
import time
|
13 |
|
14 |
-
def hex_to_rgb(hex_color: str) -> tuple[int, int, int]:
|
15 |
-
hex_color = hex_color.lstrip('#')
|
16 |
-
return tuple(int(hex_color[i:i+2], 16) for i in (0, 2, 4))
|
17 |
-
from __future__ import annotations
|
18 |
-
from typing import Iterable
|
19 |
-
import gradio as gr
|
20 |
-
from gradio.themes.base import Base
|
21 |
-
from gradio.themes.utils import colors, fonts, sizes
|
22 |
-
import time
|
23 |
-
|
24 |
class MPGPoster(Base):
|
25 |
@staticmethod
|
26 |
def create_color_shades(hex_color: str) -> colors.Color:
|
|
|
11 |
import colorsys
|
12 |
import time
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
class MPGPoster(Base):
|
15 |
@staticmethod
|
16 |
def create_color_shades(hex_color: str) -> colors.Color:
|