cwadayi commited on
Commit
42efcab
·
verified ·
1 Parent(s): 6f57c3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -15,8 +15,9 @@ professional_theme = gr.themes.Soft(
15
 
16
  # Set component radius and spacing
17
  radius_size=gr.themes.sizes.radius_md,
18
- spacing_size="20px",
19
- # ✨ REMOVED: The invalid 'layout_gap' argument
 
20
 
21
  ).set(
22
  # --- The .set() method is for colors and styles ---
@@ -58,3 +59,4 @@ demo = create_ui(visit_count_html, theme=professional_theme)
58
  # --- Launch the application ---
59
  if __name__ == "__main__":
60
  demo.launch()
 
 
15
 
16
  # Set component radius and spacing
17
  radius_size=gr.themes.sizes.radius_md,
18
+
19
+ # ✨ CORRECTED: Replaced the string "20px" with a valid theme size object
20
+ spacing_size=gr.themes.sizes.spacing_md,
21
 
22
  ).set(
23
  # --- The .set() method is for colors and styles ---
 
59
  # --- Launch the application ---
60
  if __name__ == "__main__":
61
  demo.launch()
62
+