MySafeCode commited on
Commit
9f4a7b9
·
verified ·
1 Parent(s): 89067ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import re
3
 
4
- def predict(url: str):
5
  """
6
  Convert a Suno song URL to the direct MP3 link.
7
  Returns a tuple: (displayed URL, downloadable URL)
@@ -16,7 +16,7 @@ def predict(url: str):
16
 
17
  # Define the Gradio interface
18
  demo = gr.Interface(
19
- fn=predict,
20
  inputs=gr.Textbox(label="Enter Suno song URL", placeholder="https://suno.com/song/..."),
21
  outputs=[
22
  gr.Textbox(label="MP3 URL"),
 
1
  import gradio as gr
2
  import re
3
 
4
+ def getmp3(url: str):
5
  """
6
  Convert a Suno song URL to the direct MP3 link.
7
  Returns a tuple: (displayed URL, downloadable URL)
 
16
 
17
  # Define the Gradio interface
18
  demo = gr.Interface(
19
+ fn=getmp3,
20
  inputs=gr.Textbox(label="Enter Suno song URL", placeholder="https://suno.com/song/..."),
21
  outputs=[
22
  gr.Textbox(label="MP3 URL"),