ALYYAN commited on
Commit
a84b21c
·
unverified ·
1 Parent(s): bc7b5e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -36,7 +36,22 @@ async def refresh_history_table():
36
  return gr.update(value=data)
37
 
38
  # --- Gradio UI Definition ---
39
- css = "..." # (CSS is the same as the previous correct version)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  with gr.Blocks(theme=gr.themes.Default(primary_hue="blue", secondary_hue="blue"), css=css, title="Pneumonia Detection AI") as demo:
41
 
42
  with gr.Column() as main_app:
 
36
  return gr.update(value=data)
37
 
38
  # --- Gradio UI Definition ---
39
+ css = """
40
+ /* --- Professional Dark Theme & Fonts --- */
41
+ :root { --primary-hue: 220 !important; --secondary-hue: 210 !important; --neutral-hue: 210 !important; --body-background-fill: #111827 !important; --block-background-fill: #1F2937 !important; --block-border-width: 1px !important; --border-color-accent: #374151 !important; --background-fill-secondary: #1F2937 !important;}
42
+ /* --- Header & Title Styling --- */
43
+ #app_header { text-align: center; }
44
+ #app_title { font-size: 2.8rem !important; font-weight: 700 !important; color: #FFFFFF !important; padding-top: 1rem; }
45
+ #app_subtitle { font-size: 1.2rem !important; color: #9CA3AF !important; margin-bottom: 2rem; }
46
+ /* --- Layout, Spacing, and Component Styling --- */
47
+ #main_container { gap: 2rem; }
48
+ #results_gallery .gallery-item { padding: 0.25rem !important; background-color: #374151; border: 1px solid #374151 !important; }
49
+ #bottom_controls { max-width: 600px; margin: 2.5rem auto 1rem auto; }
50
+ #bottom_controls .gr-accordion > .gr-block-label { text-align: center !important; display: block !important; }
51
+ /* --- FIX: Style the sample gallery for a cleaner look --- */
52
+ #sample_gallery { background-color: transparent !important; border: none !important; }
53
+ #sample_gallery .gallery-item { box-shadow: 0 0 5px rgba(0,0,0,0.5); border-radius: 8px !important; }
54
+ """
55
  with gr.Blocks(theme=gr.themes.Default(primary_hue="blue", secondary_hue="blue"), css=css, title="Pneumonia Detection AI") as demo:
56
 
57
  with gr.Column() as main_app: