Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import pipeline,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
model = AutoModel.from_pretrained("ericxlima/DogsClassifierModel")
|
| 5 |
-
|
| 6 |
dogs = {
|
| 7 |
'Zwergspitz Dog': [],
|
| 8 |
'Bouledogue Français Dog': [],
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from transformers import pipeline, AutoConfig, AutoModelForSequenceClassification
|
| 3 |
+
|
| 4 |
+
config_path = "dogs.pkl"
|
| 5 |
+
config = AutoConfig.from_pretrained(config_path)
|
| 6 |
+
|
| 7 |
+
model = AutoModelForSequenceClassification.from_pretrained("ericxlima/DogsClassifierModel", config=config)
|
| 8 |
|
|
|
|
|
|
|
| 9 |
dogs = {
|
| 10 |
'Zwergspitz Dog': [],
|
| 11 |
'Bouledogue Français Dog': [],
|