abidlabs HF Staff commited on
Commit
c4d5f21
·
1 Parent(s): af29b69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,7 +20,8 @@ def create_random_text_files(directory="/data", num_files=10, file_length=1000):
20
 
21
 
22
  with gr.Blocks() as demo:
23
- gr.FileExplorer("/data/**.*")
 
24
  demo.load(create_random_text_files, None, None)
25
 
26
  demo.launch()
 
20
 
21
 
22
  with gr.Blocks() as demo:
23
+ gr.FileExplorer()
24
+ gr.FileExplorer(root="/data")
25
  demo.load(create_random_text_files, None, None)
26
 
27
  demo.launch()