Spaces:
Sleeping
Sleeping
shadownada
commited on
Commit
•
cbf064a
1
Parent(s):
ccaf54e
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# import streamlit as st
|
2 |
# from transformers import pipeline
|
3 |
# from PIL import Image
|
4 |
|
5 |
-
print("hello")
|
6 |
-
|
7 |
# MODEL_1 = "google/vit-base-patch16-224"
|
8 |
# MIN_ACEPTABLE_SCORE = 0.1
|
9 |
# MAX_N_LABELS = 5
|
|
|
1 |
+
# Use a pipeline as a high-level helper
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
pipe = pipeline("image-classification", model="google/efficientnet-b0")
|
5 |
+
|
6 |
+
|
7 |
# import streamlit as st
|
8 |
# from transformers import pipeline
|
9 |
# from PIL import Image
|
10 |
|
|
|
|
|
11 |
# MODEL_1 = "google/vit-base-patch16-224"
|
12 |
# MIN_ACEPTABLE_SCORE = 0.1
|
13 |
# MAX_N_LABELS = 5
|