panelforge commited on
Commit
c8b1eef
·
verified ·
1 Parent(s): 620cd30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -142,11 +142,21 @@ 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")
 
142
  with gr.Column(elem_id="left-column"):
143
  gr.Markdown("""# Rainbow Media X""")
144
 
145
+ # Add buttons for external links above the prompt using Markdown
146
  with gr.Row(elem_id="external-links"):
147
+ gr.Markdown(
148
+ """
149
+ <a href="https://example.com/space1" target="_blank">
150
+ <button class="gradio-button" style="width: 100%;">Go to Space 1</button>
151
+ </a>
152
+ <a href="https://example.com/space2" target="_blank">
153
+ <button class="gradio-button" style="width: 100%;">Go to Space 2</button>
154
+ </a>
155
+ <a href="https://example.com/space3" target="_blank">
156
+ <button class="gradio-button" style="width: 100%;">Go to Space 3</button>
157
+ </a>
158
+ """
159
+ )
160
 
161
  # Display result image at the top
162
  result = gr.Image(label="Result", show_label=False, elem_id="result")