akashdeb commited on
Commit
be7be8a
·
verified ·
1 Parent(s): 805635c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="file"),
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
  )