Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,6 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification, Auto
|
|
10 |
import os
|
11 |
import colorsys
|
12 |
import time
|
13 |
-
|
14 |
class MPGPoster(Base):
|
15 |
@staticmethod
|
16 |
def create_color_shades(hex_color: str) -> colors.Color:
|
@@ -33,11 +32,6 @@ class MPGPoster(Base):
|
|
33 |
def __init__(
|
34 |
self,
|
35 |
*,
|
36 |
-
primary_hue: colors.Color | str = MPGPoster.create_color_shades("#f47317"),
|
37 |
-
background_hue: colors.Color | str = MPGPoster.create_color_shades("#f6f6f6ff"),
|
38 |
-
secondary_dark_hue: colors.Color | str = MPGPoster.create_color_shades("#006c66"),
|
39 |
-
secondary_light_hue: colors.Color | str = MPGPoster.create_color_shades("#6ad5bc"),
|
40 |
-
tertiary_highlight_hue: colors.Color | str = MPGPoster.create_color_shades("#fbf22c"),
|
41 |
spacing_size: sizes.Size | str = sizes.spacing_md,
|
42 |
radius_size: sizes.Size | str = sizes.radius_md,
|
43 |
text_size: sizes.Size | str = sizes.text_lg,
|
@@ -52,6 +46,12 @@ class MPGPoster(Base):
|
|
52 |
"monospace",
|
53 |
),
|
54 |
):
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
super().__init__(
|
56 |
primary_hue=primary_hue,
|
57 |
secondary_hue=secondary_dark_hue,
|
|
|
10 |
import os
|
11 |
import colorsys
|
12 |
import time
|
|
|
13 |
class MPGPoster(Base):
|
14 |
@staticmethod
|
15 |
def create_color_shades(hex_color: str) -> colors.Color:
|
|
|
32 |
def __init__(
|
33 |
self,
|
34 |
*,
|
|
|
|
|
|
|
|
|
|
|
35 |
spacing_size: sizes.Size | str = sizes.spacing_md,
|
36 |
radius_size: sizes.Size | str = sizes.radius_md,
|
37 |
text_size: sizes.Size | str = sizes.text_lg,
|
|
|
46 |
"monospace",
|
47 |
),
|
48 |
):
|
49 |
+
primary_hue = MPGPoster.create_color_shades("#f47317")
|
50 |
+
background_hue = MPGPoster.create_color_shades("#f6f6f6ff")
|
51 |
+
secondary_dark_hue = MPGPoster.create_color_shades("#006c66")
|
52 |
+
secondary_light_hue = MPGPoster.create_color_shades("#6ad5bc")
|
53 |
+
tertiary_highlight_hue = MPGPoster.create_color_shades("#fbf22c")
|
54 |
+
|
55 |
super().__init__(
|
56 |
primary_hue=primary_hue,
|
57 |
secondary_hue=secondary_dark_hue,
|