Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import AutoTokenizer, pipeline, AutoModelForTokenClassificati
|
|
9 |
tokenizer = AutoTokenizer.from_pretrained("Battu007/1_Image_Classification")
|
10 |
model = AutoModelForTokenClassification.from_pretrained("Battu007/1_Image_Classification")
|
11 |
|
12 |
-
|
13 |
|
14 |
def predict_image(opened_image):
|
15 |
img_array = tf.keras.utils.img_to_array(opened_image)
|
|
|
9 |
tokenizer = AutoTokenizer.from_pretrained("Battu007/1_Image_Classification")
|
10 |
model = AutoModelForTokenClassification.from_pretrained("Battu007/1_Image_Classification")
|
11 |
|
12 |
+
|
13 |
|
14 |
def predict_image(opened_image):
|
15 |
img_array = tf.keras.utils.img_to_array(opened_image)
|