Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import re
|
| 3 |
|
| 4 |
-
def
|
| 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=
|
| 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"),
|