Spaces:
Sleeping
Sleeping
Initial Draft
Browse files- Dashboard.py +3 -2
Dashboard.py
CHANGED
|
@@ -12,12 +12,13 @@ DATA_SET = os.environ.get("DATA_SET")
|
|
| 12 |
################################
|
| 13 |
####### GenericFunctions #######
|
| 14 |
################################
|
| 15 |
-
def
|
| 16 |
dataset = load_dataset(DATA_SET)
|
|
|
|
| 17 |
|
| 18 |
def save_dataset():
|
| 19 |
# Load a dataset from the Hugging Face Hub
|
| 20 |
-
|
| 21 |
|
| 22 |
# Create a directory to save the files
|
| 23 |
output_directory = "data"
|
|
|
|
| 12 |
################################
|
| 13 |
####### GenericFunctions #######
|
| 14 |
################################
|
| 15 |
+
def load_hf_dataset():
|
| 16 |
dataset = load_dataset(DATA_SET)
|
| 17 |
+
return dataset
|
| 18 |
|
| 19 |
def save_dataset():
|
| 20 |
# Load a dataset from the Hugging Face Hub
|
| 21 |
+
dataset = load_hf_dataset()
|
| 22 |
|
| 23 |
# Create a directory to save the files
|
| 24 |
output_directory = "data"
|