Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,23 +1,17 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
css = """
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
}
|
| 10 |
"""
|
| 11 |
|
| 12 |
with gr.Blocks(css=css) as demo:
|
| 13 |
-
with gr.Row():
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
with gr.Column():
|
| 18 |
-
gr.Markdown("<span style='color: purple;' class='custom-label'>Input 2</span>")
|
| 19 |
-
txt2 = gr.Textbox(show_label=False)
|
| 20 |
-
with gr.Column():
|
| 21 |
-
gr.Markdown("<span style='color: blue;' class='custom-label'>Input 3</span>")
|
| 22 |
-
txt3 = gr.Textbox(show_label=False)
|
| 23 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
css = """
|
| 4 |
+
#my-row {
|
| 5 |
+
border: 2px solid black; /* Thickness and color of border */
|
| 6 |
+
border-radius: 8px; /* Optional: rounded corners */
|
| 7 |
+
padding: 10px; /* Optional: inner spacing */
|
| 8 |
+
margin-bottom: 10px; /* Optional: spacing below the row */
|
| 9 |
}
|
| 10 |
"""
|
| 11 |
|
| 12 |
with gr.Blocks(css=css) as demo:
|
| 13 |
+
with gr.Row(elem_id="my-row"):
|
| 14 |
+
gr.Textbox(label="Input 1")
|
| 15 |
+
gr.Textbox(label="Input 2")
|
| 16 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
demo.launch()
|