Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def display_audio_meter(audio_file):
|
|
| 25 |
# Create Gradio Interface
|
| 26 |
interface = gr.Interface(
|
| 27 |
fn=display_audio_meter,
|
| 28 |
-
inputs=gr.Audio(type="
|
| 29 |
outputs=gr.HTML(),
|
| 30 |
live=True # Optionally, you can process live while uploading
|
| 31 |
)
|
|
|
|
| 25 |
# Create Gradio Interface
|
| 26 |
interface = gr.Interface(
|
| 27 |
fn=display_audio_meter,
|
| 28 |
+
inputs=gr.Audio(type="filepath"), # Use 'filepath' to handle the uploaded file path
|
| 29 |
outputs=gr.HTML(),
|
| 30 |
live=True # Optionally, you can process live while uploading
|
| 31 |
)
|