ShankarC commited on
Commit
35d1bf0
·
verified ·
1 Parent(s): e062548

Update app.py

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