Spaces:
Running
Running
Merge pull request #2 from joeddav/misc
Browse files- requirements.txt +3 -0
- tagging_app.py +2 -2
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
pyyaml
|
2 |
+
datasets
|
3 |
+
streamlit
|
tagging_app.py
CHANGED
@@ -102,7 +102,7 @@ def find_languages(feature_dict):
|
|
102 |
|
103 |
keep_keys = ['description', 'features', 'homepage', 'license', 'splits']
|
104 |
|
105 |
-
@st.cache
|
106 |
def get_info_dicts(dataset_id):
|
107 |
module_path = datasets.load.prepare_module(dataset_id, dataset=True)
|
108 |
builder_cls = datasets.load.import_main_class(module_path[0], dataset=True)
|
@@ -119,7 +119,7 @@ def get_info_dicts(dataset_id):
|
|
119 |
def get_dataset_list():
|
120 |
return datasets.list_datasets()
|
121 |
|
122 |
-
@st.cache()
|
123 |
def load_all_dataset_infos(dataset_list):
|
124 |
dataset_infos = {}
|
125 |
for did in dataset_list:
|
|
|
102 |
|
103 |
keep_keys = ['description', 'features', 'homepage', 'license', 'splits']
|
104 |
|
105 |
+
@st.cache(show_spinner=False)
|
106 |
def get_info_dicts(dataset_id):
|
107 |
module_path = datasets.load.prepare_module(dataset_id, dataset=True)
|
108 |
builder_cls = datasets.load.import_main_class(module_path[0], dataset=True)
|
|
|
119 |
def get_dataset_list():
|
120 |
return datasets.list_datasets()
|
121 |
|
122 |
+
@st.cache(show_spinner=False)
|
123 |
def load_all_dataset_infos(dataset_list):
|
124 |
dataset_infos = {}
|
125 |
for did in dataset_list:
|