Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -122,6 +122,18 @@ css = """
|
|
122 |
#prompt {
|
123 |
margin-bottom: 20px;
|
124 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
"""
|
126 |
|
127 |
with gr.Blocks(css=css) as demo:
|
@@ -130,6 +142,12 @@ with gr.Blocks(css=css) as demo:
|
|
130 |
with gr.Column(elem_id="left-column"):
|
131 |
gr.Markdown("""# Rainbow Media X""")
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
# Display result image at the top
|
134 |
result = gr.Image(label="Result", show_label=False, elem_id="result")
|
135 |
|
|
|
122 |
#prompt {
|
123 |
margin-bottom: 20px;
|
124 |
}
|
125 |
+
|
126 |
+
#external-links {
|
127 |
+
margin-bottom: 20px;
|
128 |
+
display: flex;
|
129 |
+
gap: 10px;
|
130 |
+
}
|
131 |
+
|
132 |
+
#external-links .gradio-button {
|
133 |
+
flex: 1;
|
134 |
+
display: block;
|
135 |
+
width: 100%;
|
136 |
+
}
|
137 |
"""
|
138 |
|
139 |
with gr.Blocks(css=css) as demo:
|
|
|
142 |
with gr.Column(elem_id="left-column"):
|
143 |
gr.Markdown("""# Rainbow Media X""")
|
144 |
|
145 |
+
# Add buttons for external links above the prompt
|
146 |
+
with gr.Row(elem_id="external-links"):
|
147 |
+
link_button_1 = gr.Button("Go to Space 1", elem_id="link-1", url="https://example.com/space1")
|
148 |
+
link_button_2 = gr.Button("Go to Space 2", elem_id="link-2", url="https://example.com/space2")
|
149 |
+
link_button_3 = gr.Button("Go to Space 3", elem_id="link-3", url="https://example.com/space3")
|
150 |
+
|
151 |
# Display result image at the top
|
152 |
result = gr.Image(label="Result", show_label=False, elem_id="result")
|
153 |
|