Spaces:
Running
Running
Update pages/Entorno de Ejecución.py
Browse files
pages/Entorno de Ejecución.py
CHANGED
@@ -194,7 +194,7 @@ with vit:
|
|
194 |
# #classifiers = [Dinov2Model.from_pretrained("frncscp/dinotron")]
|
195 |
# classifiers = [pipeline("image-classification", model="frncscp/dinotron")]
|
196 |
#else:
|
197 |
-
classifiers = [pipeline("image-classification", model= model_dict[model_choice[i]]) for i in range(len(model_choice))]
|
198 |
|
199 |
#classifier = pipeline("image-classification", model= model_dict[model_choice[0]])
|
200 |
img = preprocess(uploaded_file, module = 'pil')
|
|
|
194 |
# #classifiers = [Dinov2Model.from_pretrained("frncscp/dinotron")]
|
195 |
# classifiers = [pipeline("image-classification", model="frncscp/dinotron")]
|
196 |
#else:
|
197 |
+
classifiers = [pipeline("image-classification", model= model_dict[model_choice[i]], token = token) for i in range(len(model_choice))]
|
198 |
|
199 |
#classifier = pipeline("image-classification", model= model_dict[model_choice[0]])
|
200 |
img = preprocess(uploaded_file, module = 'pil')
|