Spaces:
Sleeping
Sleeping
Commit
·
6587e6f
1
Parent(s):
bd96aca
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ hf_saver = gr.HuggingFaceDatasetSaver(HF_TOKEN, "wfh-problematic")
|
|
10 |
|
11 |
# model path in hugginface
|
12 |
model_path = "yabramuvdi/distilbert-wfh"
|
13 |
-
tokenizer = DistilBertTokenizer.from_pretrained(model_path, use_auth_token=
|
14 |
-
model = DistilBertForSequenceClassification.from_pretrained(model_path, use_auth_token=
|
15 |
|
16 |
# create a pipeline for predictions
|
17 |
classifier = TextClassificationPipeline(model=model,
|
|
|
10 |
|
11 |
# model path in hugginface
|
12 |
model_path = "yabramuvdi/distilbert-wfh"
|
13 |
+
tokenizer = DistilBertTokenizer.from_pretrained(model_path, use_auth_token=HF_TOKEN)
|
14 |
+
model = DistilBertForSequenceClassification.from_pretrained(model_path, use_auth_token=HF_TOKEN)
|
15 |
|
16 |
# create a pipeline for predictions
|
17 |
classifier = TextClassificationPipeline(model=model,
|