Spaces:
Runtime error
Runtime error
imalexianne
commited on
Commit
•
e2276bc
1
Parent(s):
43b0f99
Update app.py
Browse files
app.py
CHANGED
@@ -19,12 +19,12 @@ login("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")
|
|
19 |
# Requirements
|
20 |
# huggingface_token = "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" # Replace with your actual token
|
21 |
model_path = "imalexianne/distilbert-base-uncased"
|
22 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
23 |
|
24 |
# tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
25 |
# tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased", revision="main")
|
26 |
-
config = AutoConfig.from_pretrained(model_path
|
27 |
-
model = AutoModelForSequenceClassification.from_pretrained(model_path
|
28 |
|
29 |
# Preprocessessing function
|
30 |
def preprocess(text):
|
|
|
19 |
# Requirements
|
20 |
# huggingface_token = "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" # Replace with your actual token
|
21 |
model_path = "imalexianne/distilbert-base-uncased"
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
23 |
|
24 |
# tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
25 |
# tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased", revision="main")
|
26 |
+
config = AutoConfig.from_pretrained(model_path)
|
27 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
28 |
|
29 |
# Preprocessessing function
|
30 |
def preprocess(text):
|