Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
·
ea53ef9
1
Parent(s):
c3029dd
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from PIL import Image
|
|
3 |
|
4 |
import datasets
|
5 |
from datasets import load_dataset
|
6 |
-
from huggingface_hub import delete_repo
|
7 |
|
8 |
idx = 0
|
9 |
data_to_label = load_dataset("active-learning/to_label_samples")
|
@@ -54,6 +54,7 @@ with gr.Blocks() as demo:
|
|
54 |
# datasets library does not allow pushing an empty dataset, so as a
|
55 |
# workaround we just delete the repo
|
56 |
delete_repo(repo_id="active-learning/to_label_samples", repo_type="dataset")
|
|
|
57 |
|
58 |
# Push to training dataset
|
59 |
labeled_dataset = load_dataset("active-learning/labeled_samples")["train"]
|
|
|
3 |
|
4 |
import datasets
|
5 |
from datasets import load_dataset
|
6 |
+
from huggingface_hub import delete_repo, create_repo
|
7 |
|
8 |
idx = 0
|
9 |
data_to_label = load_dataset("active-learning/to_label_samples")
|
|
|
54 |
# datasets library does not allow pushing an empty dataset, so as a
|
55 |
# workaround we just delete the repo
|
56 |
delete_repo(repo_id="active-learning/to_label_samples", repo_type="dataset")
|
57 |
+
create_repo(repo_id="active-learning/to_label_samples", repo_type="dataset")
|
58 |
|
59 |
# Push to training dataset
|
60 |
labeled_dataset = load_dataset("active-learning/labeled_samples")["train"]
|