Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,8 @@ with gr.Blocks(css="""
|
|
107 |
|
108 |
with gr.Column(scale=1, min_width=250):
|
109 |
gr.HTML('<label><i class="fas fa-upload"></i> Upload Audio</label>')
|
110 |
-
|
|
|
111 |
|
112 |
with gr.Row():
|
113 |
gr.HTML("<h3>Trim Audio (Optional)</h3>")
|
@@ -133,3 +134,4 @@ with gr.Blocks(css="""
|
|
133 |
process_button.click(process_youtube_or_audio, inputs=[youtube_url, audio_upload, start_time, end_time], outputs=[mp3_download, iphone_ringtone])
|
134 |
|
135 |
interface.launch(share=True)
|
|
|
|
107 |
|
108 |
with gr.Column(scale=1, min_width=250):
|
109 |
gr.HTML('<label><i class="fas fa-upload"></i> Upload Audio</label>')
|
110 |
+
# Change type to 'filepath' for Hugging Face compatibility
|
111 |
+
audio_upload = gr.File(label="Upload Audio", type="filepath", show_label=False)
|
112 |
|
113 |
with gr.Row():
|
114 |
gr.HTML("<h3>Trim Audio (Optional)</h3>")
|
|
|
134 |
process_button.click(process_youtube_or_audio, inputs=[youtube_url, audio_upload, start_time, end_time], outputs=[mp3_download, iphone_ringtone])
|
135 |
|
136 |
interface.launch(share=True)
|
137 |
+
|