owiedotch commited on
Commit
aea3232
1 Parent(s): d4b0a5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -120,7 +120,8 @@ iface: gr.Interface = gr.Interface(
120
  )
121
 
122
  # make mp3 bitrate slider visible only when "save as mp3" is checked
123
- iface.inputs[-2].change(fn=lambda mp3: gr.update(visible=mp3), inputs=iface.inputs[-2], outputs=iface.inputs[-1])
 
124
 
125
  # launch the gradio interface
126
  iface.launch()
 
120
  )
121
 
122
  # make mp3 bitrate slider visible only when "save as mp3" is checked
123
+ # iface.inputs[-2].change(fn=lambda mp3: gr.update(visible=mp3), inputs=iface.inputs[-2], outputs=iface.inputs[-1])
124
+ iface.components[-2].change(fn=lambda mp3: gr.update(visible=mp3), inputs=iface.components[-2], outputs=iface.components[-1])
125
 
126
  # launch the gradio interface
127
  iface.launch()