ShankarC commited on
Commit
e11fba5
·
verified ·
1 Parent(s): c27376a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -1,19 +1,18 @@
1
  import gradio as gr
2
 
3
  css = """
4
- /* Optional: add spacing between label and textbox */
5
- .custom-label {
6
- margin-bottom: 4px;
7
- font-weight: bold;
 
8
  }
9
  """
10
 
11
  with gr.Blocks(css=css) as demo:
12
- with gr.Row():
13
- gr.Markdown("<span style='color:red;' class='custom-label'>Input 1</span>")
14
- txt1 = gr.Textbox(show_label=False)
15
-
16
- gr.Markdown("<span style='color:purple;' class='custom-label'>Input 2</span>")
17
- txt2 = gr.Textbox(show_label=False)
18
 
19
  demo.launch()
 
1
  import gradio as gr
2
 
3
  css = """
4
+ #input1 textarea {
5
+ color: red !important;
6
+ }
7
+ #input2 textarea {
8
+ color: purple !important;
9
  }
10
  """
11
 
12
  with gr.Blocks(css=css) as demo:
13
+ gr.Markdown("<span style='color:blue; font-weight:bold; padding:5px; border-radius:4px;'>My Label</span>")
14
+ with gr.Row():
15
+ txt1 = gr.Textbox(label="Input 1", elem_id="input1")
16
+ txt2 = gr.Textbox(label="Input 2", elem_id="input2")
 
 
17
 
18
  demo.launch()