Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,18 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
css = """
|
| 4 |
-
#
|
| 5 |
color: red !important;
|
| 6 |
font-weight: bold;
|
| 7 |
}
|
| 8 |
-
#
|
| 9 |
color: purple !important;
|
| 10 |
font-weight: bold;
|
| 11 |
}
|
| 12 |
"""
|
| 13 |
|
| 14 |
with gr.Blocks(css=css) as demo:
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
txt1 = gr.Textbox(label="Input 1", elem_id="input1_label")
|
| 18 |
-
txt2 = gr.Textbox(label="Input 2", elem_id="input2")
|
| 19 |
|
| 20 |
demo.launch()
|
|
|
|
| 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()
|