tiahchia commited on
Commit
c9e4dc1
·
verified ·
1 Parent(s): fa3acc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -80,7 +80,7 @@ body {
80
  border-radius:8px;
81
  padding:8px !important;
82
  }
83
- .gr-radio { color:#e0e0e0; margin-bottom:12px; }
84
  button, .gr-button { background-color:#F714C5 !important; color:#fff !important; border-radius:6px !important; padding:8px 16px !important; }
85
  footer { display:none !important; }
86
  header { background:#000000; padding:16px; color:#F714C5; font-size:1.4em; text-align:center; margin-top:20px; }
@@ -120,11 +120,11 @@ canvas#particles { position:fixed; top:0; left:0; width:100%; height:100%; z-ind
120
  </h2>
121
  """)
122
 
123
- # --- Language selector ---
124
  lang_selector = gr.Radio(
125
  choices=["Python", "Web (HTML/CSS/JS)"],
126
  value="Web (HTML/CSS/JS)",
127
- label="Select Language"
128
  )
129
 
130
  # --- Vertical layout: output on top ---
@@ -158,3 +158,4 @@ canvas#particles { position:fixed; top:0; left:0; width:100%; height:100%; z-ind
158
  render_button.click(run_code, inputs=[code_input, lang_selector], outputs=output_frame)
159
 
160
  demo.launch()
 
 
80
  border-radius:8px;
81
  padding:8px !important;
82
  }
83
+ .gr-radio { color:#e0e0e0; margin:0 0 8px 0 !important; font-size:0.95em; }
84
  button, .gr-button { background-color:#F714C5 !important; color:#fff !important; border-radius:6px !important; padding:8px 16px !important; }
85
  footer { display:none !important; }
86
  header { background:#000000; padding:16px; color:#F714C5; font-size:1.4em; text-align:center; margin-top:20px; }
 
120
  </h2>
121
  """)
122
 
123
+ # --- Compact Language selector (no label) ---
124
  lang_selector = gr.Radio(
125
  choices=["Python", "Web (HTML/CSS/JS)"],
126
  value="Web (HTML/CSS/JS)",
127
+ label=None # Removed label for compact look
128
  )
129
 
130
  # --- Vertical layout: output on top ---
 
158
  render_button.click(run_code, inputs=[code_input, lang_selector], outputs=output_frame)
159
 
160
  demo.launch()
161
+