AlGe commited on
Commit
9805df0
·
verified ·
1 Parent(s): 48d0847

Update app.py

Browse files

change theme definetly

Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -29,6 +29,8 @@ def adjust_brightness(rgb_color: tuple[int, int, int], factor: float) -> tuple[i
29
  new_rgb = colorsys.hsv_to_rgb(hsv_color[0], hsv_color[1], new_v)
30
  return tuple(int(v * 255) for v in new_rgb)
31
 
 
 
32
  class MPGPoster(Default):
33
  @staticmethod
34
  def create_color_shades(hex_color: str, brightness_control: float = 1.0) -> colors.Color:
@@ -75,7 +77,7 @@ class MPGPoster(Default):
75
  secondary_dark_hue = MPGPoster.create_color_shades("#6ad5bc") #006c66
76
  #secondary_light_hue = MPGPoster.create_color_shades("#fbf22c") #6ad5bc
77
  #tertiary_highlight_hue = MPGPoster.create_color_shades("#6ad5bc") #fbf22c
78
- """
79
  super().__init__(
80
  primary_hue=primary_hue,
81
  secondary_hue=secondary_dark_hue,
@@ -193,7 +195,7 @@ iface = gr.Interface(
193
  title="Scoring Demo",
194
  description="Autobiographical Memory Analysis: This demo combines two text - and two sequence classification models to showcase our automated Autobiographical Interview scoring method. Submit a narrative to see the results.",
195
  examples = examples,
196
- theme= mpg_poster #"soft" #monochrome
197
  )
198
 
199
  # Launch the combined interface
 
29
  new_rgb = colorsys.hsv_to_rgb(hsv_color[0], hsv_color[1], new_v)
30
  return tuple(int(v * 255) for v in new_rgb)
31
 
32
+
33
+ """
34
  class MPGPoster(Default):
35
  @staticmethod
36
  def create_color_shades(hex_color: str, brightness_control: float = 1.0) -> colors.Color:
 
77
  secondary_dark_hue = MPGPoster.create_color_shades("#6ad5bc") #006c66
78
  #secondary_light_hue = MPGPoster.create_color_shades("#fbf22c") #6ad5bc
79
  #tertiary_highlight_hue = MPGPoster.create_color_shades("#6ad5bc") #fbf22c
80
+
81
  super().__init__(
82
  primary_hue=primary_hue,
83
  secondary_hue=secondary_dark_hue,
 
195
  title="Scoring Demo",
196
  description="Autobiographical Memory Analysis: This demo combines two text - and two sequence classification models to showcase our automated Autobiographical Interview scoring method. Submit a narrative to see the results.",
197
  examples = examples,
198
+ theme= monochrome #"soft" #monochrome #mpg_poster
199
  )
200
 
201
  # Launch the combined interface