jaker86 commited on
Commit
6c81648
·
verified ·
1 Parent(s): 5b239bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -359,7 +359,7 @@ with gr.Blocks() as demo:
359
  def update_inputs(file, label_col):
360
  print(f"Updating inputs with file: {file}, label_col: {label_col}") # Debug logging
361
  components = create_interactive_inputs(file, label_col)
362
- return components, gr.update(components=components, visible=True) # Use gr.update() instead of gr.Column.update()
363
 
364
  file_input.change(
365
  fn=update_inputs,
 
359
  def update_inputs(file, label_col):
360
  print(f"Updating inputs with file: {file}, label_col: {label_col}") # Debug logging
361
  components = create_interactive_inputs(file, label_col)
362
+ return components, gr.Column(visible=True, elements=components) # Use elements instead of components
363
 
364
  file_input.change(
365
  fn=update_inputs,