Spaces:
Runtime error
Runtime error
Adonai Vera
commited on
Commit
·
9cf13b2
1
Parent(s):
22e3686
Add secret token
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ import os
|
|
7 |
|
8 |
# Initialize the pipeline with your model
|
9 |
pipe = pipeline("image-classification", model="SubterraAI/ofwat_cleaner_classification")
|
10 |
-
|
|
|
11 |
|
12 |
|
13 |
def classify_image(image):
|
|
|
7 |
|
8 |
# Initialize the pipeline with your model
|
9 |
pipe = pipeline("image-classification", model="SubterraAI/ofwat_cleaner_classification")
|
10 |
+
HF_TOKEN = os.environ.get('HF_TOKEN')
|
11 |
+
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, dataset_name="ofwat_cleaner_loop", private=True, separate_dirs=True)
|
12 |
|
13 |
|
14 |
def classify_image(image):
|