Spaces:
Runtime error
Runtime error
Adonai Vera
commited on
Commit
·
06d5653
1
Parent(s):
f54d064
tempo
Browse files
app.py
CHANGED
@@ -6,7 +6,8 @@ import os
|
|
6 |
# Initialize the pipeline with your model
|
7 |
pipe = pipeline("image-classification", model="SubterraAI/ofwat_cleaner_classification")
|
8 |
HF_TOKEN = os.environ.get('HF_TOKEN')
|
9 |
-
|
|
|
10 |
|
11 |
def classify_image(image):
|
12 |
# Convert the input image to PIL format
|
|
|
6 |
# Initialize the pipeline with your model
|
7 |
pipe = pipeline("image-classification", model="SubterraAI/ofwat_cleaner_classification")
|
8 |
HF_TOKEN = os.environ.get('HF_TOKEN')
|
9 |
+
print(HF_TOKEN)
|
10 |
+
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "SubterraAI/ofwat_cleaner_loop", separate_dirs=True)
|
11 |
|
12 |
def classify_image(image):
|
13 |
# Convert the input image to PIL format
|