Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,19 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
css = """
|
| 4 |
-
|
| 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 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|