Rogerjs commited on
Commit
cdd0fc4
·
verified ·
1 Parent(s): 0b6ccf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -147,7 +147,8 @@ Provide a concise, user-friendly interpretation of these findings in simple term
147
  # Step 1: Inspect file
148
  def preview_file(file):
149
  msg, cols, preview = inspect_file(file)
150
- return msg, gr.Dropdown.update(choices=cols, value=None), preview
 
151
 
152
  with gr.Blocks() as demo:
153
  gr.Markdown("# NeuroNarrative-Lite: EEG Summary with Flexible Preprocessing")
 
147
  # Step 1: Inspect file
148
  def preview_file(file):
149
  msg, cols, preview = inspect_file(file)
150
+ # Instead of gr.Dropdown.update(...)
151
+ return msg, {"choices": cols, "value": None}, preview
152
 
153
  with gr.Blocks() as demo:
154
  gr.Markdown("# NeuroNarrative-Lite: EEG Summary with Flexible Preprocessing")