Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def process_audio_file(audio):
|
|
20 |
# Gradioインターフェースの作成
|
21 |
interface = gr.Interface(
|
22 |
fn=process_audio_file,
|
23 |
-
inputs=gr.Audio(
|
24 |
outputs=gr.File(label="Download .pth File"),
|
25 |
title="Audio to .pth Converter",
|
26 |
description="Upload an audio file to convert it into a .pth file containing Mel Spectrogram features."
|
|
|
20 |
# Gradioインターフェースの作成
|
21 |
interface = gr.Interface(
|
22 |
fn=process_audio_file,
|
23 |
+
inputs=gr.Audio(type="filepath"), # source="upload" を削除
|
24 |
outputs=gr.File(label="Download .pth File"),
|
25 |
title="Audio to .pth Converter",
|
26 |
description="Upload an audio file to convert it into a .pth file containing Mel Spectrogram features."
|