Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def process_youtube_or_audio(url, recorded_audio):
|
|
51 |
if not os.path.exists(m4r_filename):
|
52 |
os.rename(m4a_filename, m4r_filename)
|
53 |
|
54 |
-
return mp3_filename, m4r_filename
|
55 |
|
56 |
except Exception as e:
|
57 |
print(f"Error: {e}")
|
@@ -72,13 +72,12 @@ with gr.Blocks(css="""
|
|
72 |
}
|
73 |
""") as interface:
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
""")
|
81 |
-
|
82 |
|
83 |
with gr.Row():
|
84 |
with gr.Column(scale=1, min_width=250):
|
@@ -108,3 +107,4 @@ with gr.Blocks(css="""
|
|
108 |
interface.launch(share=True)
|
109 |
|
110 |
|
|
|
|
51 |
if not os.path.exists(m4r_filename):
|
52 |
os.rename(m4a_filename, m4r_filename)
|
53 |
|
54 |
+
return os.path.abspath(mp3_filename), os.path.abspath(m4r_filename)
|
55 |
|
56 |
except Exception as e:
|
57 |
print(f"Error: {e}")
|
|
|
72 |
}
|
73 |
""") as interface:
|
74 |
|
75 |
+
gr.HTML("""
|
76 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
77 |
+
<h1><i class="fas fa-music"></i> PYTR</h1>
|
78 |
+
<p>Python YouTube Ringtones. Enter a YouTube URL or record audio to create ringtones.</p>
|
79 |
+
<p><a href="https://ringtone.JesseJesse.xyz" target="_blank">ringtone.JesseJesse.xyz</a></p>
|
80 |
+
""")
|
|
|
81 |
|
82 |
with gr.Row():
|
83 |
with gr.Column(scale=1, min_width=250):
|
|
|
107 |
interface.launch(share=True)
|
108 |
|
109 |
|
110 |
+
|