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 |
-
|
| 6 |
-
|
| 7 |
-
}
|
| 8 |
-
#input2_label {
|
| 9 |
-
color: purple !important;
|
| 10 |
font-weight: bold;
|
| 11 |
}
|
| 12 |
"""
|
| 13 |
|
| 14 |
with gr.Blocks(css=css) as demo:
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
demo.launch()
|
|
|
|
| 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 |
+
gr.Markdown("<span style='color:red;' class='custom-label'>Input 1</span>")
|
| 13 |
+
txt1 = gr.Textbox(show_label=False)
|
| 14 |
+
|
| 15 |
+
gr.Markdown("<span style='color:purple;' class='custom-label'>Input 2</span>")
|
| 16 |
+
txt2 = gr.Textbox(show_label=False)
|
| 17 |
|
| 18 |
demo.launch()
|