Mansib commited on
Commit
2a5ede3
·
1 Parent(s): f281a65

Updated style

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -41,16 +41,18 @@ def allure(image, gender):
41
  composite = round(composite, 2)
42
  return composite, hotness_score, beauty_score, attractiveness_score
43
 
44
-
45
- with gr.Interface(
46
- theme=gr.themes.Soft(
47
  font=[gr.themes.GoogleFont("Quicksand"),
48
  "ui-sans-serif", "sans-serif"],
49
  font_mono=[gr.themes.GoogleFont("IBM Plex Mono"),
50
  "ui-monospace", "monospace"],
51
  primary_hue="cyan",
52
  secondary_hue="cyan",
53
- radius_size="lg"),
 
 
 
 
54
  fn=allure,
55
  inputs=[
56
  gr.inputs.Image(label="Image"),
 
41
  composite = round(composite, 2)
42
  return composite, hotness_score, beauty_score, attractiveness_score
43
 
44
+ theme = gr.themes.Soft(
 
 
45
  font=[gr.themes.GoogleFont("Quicksand"),
46
  "ui-sans-serif", "sans-serif"],
47
  font_mono=[gr.themes.GoogleFont("IBM Plex Mono"),
48
  "ui-monospace", "monospace"],
49
  primary_hue="cyan",
50
  secondary_hue="cyan",
51
+ radius_size="xl")
52
+ theme.set(button_primary_border_radius="*radius_xl", body_background_fill=theme.body_background_fill_dark, body_text_color=theme.body_text_color_dark, body_text_color_subdued=theme.body_text_color_subdued_dark, background_fill_primary=theme.background_fill_primary_dark, background_fill_secondary=theme.background_fill_secondary_dark)
53
+
54
+ with gr.Interface(
55
+ theme=theme,
56
  fn=allure,
57
  inputs=[
58
  gr.inputs.Image(label="Image"),