Spaces:
Running
Running
shujianong
commited on
Commit
•
f340b80
1
Parent(s):
c37775c
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,9 @@ def resizeImage(img):
|
|
36 |
resized = cv2.resize(img, dim, interpolation = cv2.INTER_AREA)
|
37 |
return resized
|
38 |
|
39 |
-
|
|
|
|
|
40 |
|
41 |
"""# Define function"""
|
42 |
|
|
|
36 |
resized = cv2.resize(img, dim, interpolation = cv2.INTER_AREA)
|
37 |
return resized
|
38 |
|
39 |
+
from transformers import AutoTokenizer, TFAutoModelForSequenceClassification
|
40 |
+
tokenizer = AutoTokenizer.from_pretrained("pkm-card")
|
41 |
+
model = TFAutoModelForSequenceClassification.from_pretrained("pkm-card")
|
42 |
|
43 |
"""# Define function"""
|
44 |
|