Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ from transformers import pipeline
|
|
38 |
|
39 |
def image_processing(input_image : gr.Image):
|
40 |
image = Image.fromarray(input_image)
|
41 |
-
classifier = pipeline(task="image-classification", model="
|
42 |
species = get_max(classifier(image))['label']
|
43 |
species_text = species.lower()
|
44 |
result = summarize_wikipedia(species_text)
|
|
|
38 |
|
39 |
def image_processing(input_image : gr.Image):
|
40 |
image = Image.fromarray(input_image)
|
41 |
+
classifier = pipeline(task="image-classification", model="gungbgs/bird_species_classifier")
|
42 |
species = get_max(classifier(image))['label']
|
43 |
species_text = species.lower()
|
44 |
result = summarize_wikipedia(species_text)
|