panelforge commited on
Commit
1927620
·
verified ·
1 Parent(s): e00f1fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -11
app.py CHANGED
@@ -62,22 +62,28 @@ css = """
62
  margin: 0 auto;
63
  max-width: 640px;
64
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  """
66
 
67
  with gr.Blocks(css=css) as demo:
68
  with gr.Column(elem_id="col-container"):
69
  gr.Markdown(" # Rainbow Media Anime Generator")
70
- gr.Markdown('## <a href="https://huggingface.co/John6666/wai-ani-nsfw-ponyxl-v11-sdxl" target="_blank">John6666/wai-ani-nsfw-ponyxl-v11-sdxl</a>')
71
-
72
-
73
- # Button to redirect to another space
74
- redirect_button = gr.Button("Try a realistic model instead", variant="secondary", scale=0)
75
-
76
- # Action for the button to redirect (using JavaScript)
77
- redirect_button.click(
78
- lambda: f'<script>window.location.href = "https://example.com";</script>',
79
- outputs=[]
80
- )
81
 
82
  with gr.Row():
83
  prompt = gr.Text(
 
62
  margin: 0 auto;
63
  max-width: 640px;
64
  }
65
+ .button-link {
66
+ display: inline-block;
67
+ padding: 10px 20px;
68
+ background-color: #4CAF50;
69
+ color: white;
70
+ text-align: center;
71
+ text-decoration: none;
72
+ border-radius: 5px;
73
+ font-size: 16px;
74
+ transition: background-color 0.3s;
75
+ }
76
+
77
+ .button-link:hover {
78
+ background-color: #45a049;
79
+ }
80
  """
81
 
82
  with gr.Blocks(css=css) as demo:
83
  with gr.Column(elem_id="col-container"):
84
  gr.Markdown(" # Rainbow Media Anime Generator")
85
+ gr.Markdown(' #### <a href="https://huggingface.co/John6666/wai-ani-nsfw-ponyxl-v11-sdxl" target="_blank">John6666/wai-ani-nsfw-ponyxl-v11-sdxl</a>')
86
+ gr.Markdown(' ## <a href="https://example.com" target="_blank" class="button-link">Try a more realistic model</a>')
 
 
 
 
 
 
 
 
 
87
 
88
  with gr.Row():
89
  prompt = gr.Text(