Spaces:
Build error
Build error
no message
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
|
| 3 |
from PIL import Image
|
| 4 |
from datasets import load_dataset, Image, list_datasets
|
| 5 |
-
|
| 6 |
|
| 7 |
MODELS = [
|
| 8 |
"google/vit-base-patch16-224", #Classifição geral
|
|
@@ -73,7 +73,8 @@ def main():
|
|
| 73 |
st.write("# FLAG 3")
|
| 74 |
|
| 75 |
#modle instance
|
| 76 |
-
classifier_pipeline = pipeline('image-classification', model=
|
|
|
|
| 77 |
st.write("# FLAG 4")
|
| 78 |
|
| 79 |
#classification
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import pipeline
|
| 3 |
from PIL import Image
|
| 4 |
from datasets import load_dataset, Image, list_datasets
|
| 5 |
+
|
| 6 |
|
| 7 |
MODELS = [
|
| 8 |
"google/vit-base-patch16-224", #Classifição geral
|
|
|
|
| 73 |
st.write("# FLAG 3")
|
| 74 |
|
| 75 |
#modle instance
|
| 76 |
+
classifier_pipeline = pipeline('image-classification', model=chosen_model_name, device=0)
|
| 77 |
+
#classifier_pipeline = pipeline('image-classification', model="nateraw/vit-age-classifier", device=0)
|
| 78 |
st.write("# FLAG 4")
|
| 79 |
|
| 80 |
#classification
|