haraberget commited on
Commit
091c220
·
verified ·
1 Parent(s): dc3ae0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -1
app.py CHANGED
@@ -3,9 +3,44 @@ import gradio as gr
3
  # Function to return the HTML iframe
4
  def show_website():
5
  html_code = """
6
- <iframe src="https://suno.com/embed/c0cdb3ad-f49d-4125-8e16-4d7dd7924a02" width="760" height="240">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  <a href="https://suno.com/song/c0cdb3ad-f49d-4125-8e16-4d7dd7924a02" target="_blank">Listen on Suno</a>
8
  </iframe>
 
 
 
 
 
9
  """
10
  return html_code
11
 
 
3
  # Function to return the HTML iframe
4
  def show_website():
5
  html_code = """
6
+ <!DOCTYPE html>
7
+ <html lang="en">
8
+ <head>
9
+ <meta charset="UTF-8">
10
+ <title>Suno Embed</title>
11
+ <style>
12
+ body {
13
+ font-family: sans-serif;
14
+ background: #111;
15
+ color: #eee;
16
+ padding: 2rem;
17
+ }
18
+ iframe {
19
+ border: none;
20
+ display: block;
21
+ margin-bottom: 1rem;
22
+ }
23
+ a {
24
+ color: #0af;
25
+ text-decoration: none;
26
+ }
27
+ a:hover {
28
+ text-decoration: underline;
29
+ }
30
+ </style>
31
+ </head>
32
+ <body>
33
+
34
+ <h1>Listen on Suno</h1>
35
+
36
+ <iframe src="https://suno.com/embed/c0cdb3ad-f49d-4125-8e16-4d7dd7924a02" width="760" height="240">
37
  <a href="https://suno.com/song/c0cdb3ad-f49d-4125-8e16-4d7dd7924a02" target="_blank">Listen on Suno</a>
38
  </iframe>
39
+
40
+ <p>If the player doesn’t load, you can <a href="https://suno.com/song/c0cdb3ad-f49d-4125-8e16-4d7dd7924a02" target="_blank">click here to listen on Suno</a>.</p>
41
+
42
+ </body>
43
+ </html>
44
  """
45
  return html_code
46