Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def process_youtube_or_audio(url, recorded_audio):
|
|
56 |
with gr.Blocks(css="body { font-family: Arial, sans-serif; text-align: center; }") as interface:
|
57 |
gr.HTML("""
|
58 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
59 |
-
<h1><i class="fa fa-music"></i> YouTube
|
60 |
<p>Enter a YouTube URL or record your own audio to create a ringtone.</p>
|
61 |
""")
|
62 |
|
@@ -75,11 +75,11 @@ with gr.Blocks(css="body { font-family: Arial, sans-serif; text-align: center; }
|
|
75 |
with gr.Row():
|
76 |
with gr.Column(scale=1, min_width=250):
|
77 |
gr.HTML('<label><i class="fa fa-android"></i> Android Ringtone</label>')
|
78 |
-
mp3_download = gr.File(label="
|
79 |
|
80 |
with gr.Column(scale=1, min_width=250):
|
81 |
gr.HTML('<label><i class="fa fa-apple"></i> iPhone Ringtone</label>')
|
82 |
-
iphone_ringtone = gr.File(label="
|
83 |
|
84 |
process_button.click(process_youtube_or_audio, inputs=[youtube_url, audio_record], outputs=[mp3_download, iphone_ringtone])
|
85 |
|
|
|
56 |
with gr.Blocks(css="body { font-family: Arial, sans-serif; text-align: center; }") as interface:
|
57 |
gr.HTML("""
|
58 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
59 |
+
<h1><i class="fa fa-music"></i>PYthon YouTube Ringtones</h1>
|
60 |
<p>Enter a YouTube URL or record your own audio to create a ringtone.</p>
|
61 |
""")
|
62 |
|
|
|
75 |
with gr.Row():
|
76 |
with gr.Column(scale=1, min_width=250):
|
77 |
gr.HTML('<label><i class="fa fa-android"></i> Android Ringtone</label>')
|
78 |
+
mp3_download = gr.File(label="MP3")
|
79 |
|
80 |
with gr.Column(scale=1, min_width=250):
|
81 |
gr.HTML('<label><i class="fa fa-apple"></i> iPhone Ringtone</label>')
|
82 |
+
iphone_ringtone = gr.File(label="M4R")
|
83 |
|
84 |
process_button.click(process_youtube_or_audio, inputs=[youtube_url, audio_record], outputs=[mp3_download, iphone_ringtone])
|
85 |
|