Restrict navigation to root directory
Browse files
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,)
|