Commit
·
b44a3bf
1
Parent(s):
5feb31e
fix: Replace deprecated gr.Box with gr.Column
Browse files
app.py
CHANGED
@@ -57,26 +57,26 @@ if __name__ == "__main__":
|
|
57 |
)
|
58 |
|
59 |
with gr.Row():
|
60 |
-
with gr.
|
61 |
text1 = gr.Markdown()
|
62 |
-
with gr.
|
63 |
text2 = gr.Markdown()
|
64 |
|
65 |
# Add custom CSS
|
66 |
gr.Markdown(
|
67 |
"""
|
68 |
<style>
|
69 |
-
#
|
70 |
border: 2px solid #ddd;
|
71 |
border-radius: 10px;
|
72 |
padding: 10px;
|
73 |
margin: 10px;
|
74 |
background-color: #f9f9f9;
|
75 |
}
|
76 |
-
#
|
77 |
border-color: #007bff;
|
78 |
}
|
79 |
-
#
|
80 |
border-color: #28a745;
|
81 |
}
|
82 |
</style>
|
|
|
57 |
)
|
58 |
|
59 |
with gr.Row():
|
60 |
+
with gr.Column(elem_id="column1"):
|
61 |
text1 = gr.Markdown()
|
62 |
+
with gr.Column(elem_id="column2"):
|
63 |
text2 = gr.Markdown()
|
64 |
|
65 |
# Add custom CSS
|
66 |
gr.Markdown(
|
67 |
"""
|
68 |
<style>
|
69 |
+
#column1, #column2 {
|
70 |
border: 2px solid #ddd;
|
71 |
border-radius: 10px;
|
72 |
padding: 10px;
|
73 |
margin: 10px;
|
74 |
background-color: #f9f9f9;
|
75 |
}
|
76 |
+
#column1 {
|
77 |
border-color: #007bff;
|
78 |
}
|
79 |
+
#column2 {
|
80 |
border-color: #28a745;
|
81 |
}
|
82 |
</style>
|