yourusername commited on
Commit
6e08746
1 Parent(s): cda822a

:poop: also probably a bad idea

Browse files
Files changed (3) hide show
  1. .gitignore +1 -0
  2. app.py +6 -1
  3. requirements.txt +2 -1
.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ datasets_clone/
app.py CHANGED
@@ -10,15 +10,20 @@ import tornado
10
  import json
11
  import time
12
  import sys
 
 
13
 
14
 
 
 
 
15
  MAX_SIZE = 40000000000
16
  # if len(sys.argv) > 1:
17
  # path_to_datasets = sys.argv[1]
18
  # else:
19
  # path_to_datasets = None
20
 
21
- path_to_datasets = './datasets/datasets/'
22
 
23
  ## Hack to extend the width of the main pane.
24
  def _max_width_():
10
  import json
11
  import time
12
  import sys
13
+ from git import Repo
14
+ import os
15
 
16
 
17
+ if not os.path.exists('datasets_clone'):
18
+ Repo.clone_from('https://github.com/huggingface/datasets.git', 'datasets_clone')
19
+
20
  MAX_SIZE = 40000000000
21
  # if len(sys.argv) > 1:
22
  # path_to_datasets = sys.argv[1]
23
  # else:
24
  # path_to_datasets = None
25
 
26
+ path_to_datasets = 'datasets_clone/datasets/'
27
 
28
  ## Hack to extend the width of the main pane.
29
  def _max_width_():
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  git+https://github.com/huggingface/datasets.git@master
2
  streamlit
3
  pandas>=1.2.4,<1.3
4
- pyyaml
 
1
  git+https://github.com/huggingface/datasets.git@master
2
  streamlit
3
  pandas>=1.2.4,<1.3
4
+ pyyaml
5
+ GitPython