DmitriiKhizbullin commited on
Commit
1707e87
β€’
1 Parent(s): a38f10d

Symplistic

Browse files
Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -1,9 +1,18 @@
1
- import sys
2
 
3
- from apps.data_explorer.data_explorer import main
 
4
  from apps.data_explorer.downloader import download_data
5
 
6
  if __name__ == "__main__":
 
7
  download_data()
8
- sys.argv = [sys.argv[0], "--server-name=localhost", "--server-port=7860"]
9
- main()
 
 
 
 
 
 
 
 
1
+ # import sys
2
 
3
+ # from apps.data_explorer.data_explorer import main
4
+ from apps.data_explorer.data_explorer import construct_blocks, parse_arguments
5
  from apps.data_explorer.downloader import download_data
6
 
7
  if __name__ == "__main__":
8
+
9
  download_data()
10
+
11
+ # sys.argv = [sys.argv[0], "--server-name=localhost", "--server-port=7860"]
12
+ # main()
13
+
14
+ args = parse_arguments()
15
+
16
+ blocks = construct_blocks(args.data_path, args.default_dataset)
17
+
18
+ blocks.launch()