Spaces:
Running
Running
Aditya DN commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def convert_audio(audio_file, target_format):
|
|
| 41 |
interface = gr.Interface(
|
| 42 |
fn=convert_audio,
|
| 43 |
inputs=[
|
| 44 |
-
gr.File(label="Upload Audio File", type="
|
| 45 |
gr.Dropdown(label="Select Target Format", choices=audio_formats)
|
| 46 |
],
|
| 47 |
outputs=gr.File(label="Converted Audio File"),
|
|
|
|
| 41 |
interface = gr.Interface(
|
| 42 |
fn=convert_audio,
|
| 43 |
inputs=[
|
| 44 |
+
gr.File(label="Upload Audio File", type="file", file_types=["audio/*"]), # Menggunakan "audio/*" untuk memvalidasi file audio
|
| 45 |
gr.Dropdown(label="Select Target Format", choices=audio_formats)
|
| 46 |
],
|
| 47 |
outputs=gr.File(label="Converted Audio File"),
|