shawnyin commited on
Commit
53f3b11
·
verified ·
1 Parent(s): 62bf35c

Restrict navigation to root directory

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -89,6 +89,7 @@ def _(mo):
89
  dataset = mo.ui.file_browser(
90
  filetypes=[".h5", ".h50", ".h51", ".h52", ".h53", ".h54", ".h55"],
91
  multiple=False,
 
92
  )
93
  mo.md(f"Please select the dataset file (h5 file) \n{dataset}")
94
  return (dataset,)
 
89
  dataset = mo.ui.file_browser(
90
  filetypes=[".h5", ".h50", ".h51", ".h52", ".h53", ".h54", ".h55"],
91
  multiple=False,
92
+ restrict_navigation=True
93
  )
94
  mo.md(f"Please select the dataset file (h5 file) \n{dataset}")
95
  return (dataset,)